Skip to content

Commit ed653f9

Browse files
committed
cleaning up constructor functions tests
1 parent 454eace commit ed653f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

constructor_functions_exercise/constructorsSpec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ beforeEach(function(){
77

88
describe("Person", function(){
99
it("has a firstName", function(){
10-
expect(person.hasOwnProperty(firstName)).to.equal(true);
10+
expect(person.hasOwnProperty('firstName')).to.equal(true);
1111
});
1212
it("has a lastName", function(){
13-
expect(person.hasOwnProperty(lastName)).to.equal(true);
13+
expect(person.hasOwnProperty('lastName')).to.equal(true);
1414
});
1515
it("has a favoriteColor", function(){
16-
expect(person.hasOwnProperty(favoriteColor)).to.equal(true);
16+
expect(person.hasOwnProperty('favoriteColor')).to.equal(true);
1717
});
1818
it("has a favoriteNumber", function(){
19-
expect(person.hasOwnProperty(favoriteNumber)).to.equal(true);
19+
expect(person.hasOwnProperty('favoriteNumber')).to.equal(true);
2020
});
2121
});
2222

0 commit comments

Comments
 (0)