Skip to content

Commit fd35d3d

Browse files
author
Joe Goggins
committed
Reword constructor test to use expect instead of should
This is done because things will fail if a property has a value of undefined (like we are about to with the defaultAuth prop)
1 parent cb1c5a3 commit fd35d3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Particle.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ describe('ParticleAPI', () => {
124124
});
125125

126126
describe('constructor', () => {
127-
it('sets the defaults', () => {
127+
it('sets maps defaults to instance properties', () => {
128128
Object.keys(Defaults).forEach((setting) => {
129-
api[setting].should.equal(Defaults[setting]);
129+
expect(api[setting]).to.eql(Defaults[setting]);
130130
});
131131
});
132+
132133
});
133134

134135
describe('trackingIdentity', () => {

0 commit comments

Comments
 (0)