Skip to content

Commit 094f694

Browse files
committed
fixed a problem in the hasOwnProperty test
1 parent ab2bc55 commit 094f694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

topics/about_reflection.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test("hasOwnProperty", function() {
3737
keys.push(propertyName);
3838
}
3939
equals(keys.length, __, 'how many elements are in the keys array?');
40-
ok(keys.equalTo([__, __]), 'what are the properties of the array?');
40+
deepEqual(keys, [__, __], 'what are the properties of the array?');
4141

4242
// hasOwnProperty returns true if the parameter is a property directly on the object,
4343
// but not if it is a property accessible via the prototype chain.
@@ -48,7 +48,7 @@ test("hasOwnProperty", function() {
4848
}
4949
}
5050
equals(ownKeys.length, __, 'how many elements are in the ownKeys array?');
51-
ok(ownKeys.equalTo([__, __]), 'what are the own properties of the array?');
51+
deepEqual(ownKeys, [__], 'what are the own properties of the array?');
5252
});
5353

5454
test("constructor property", function () {

0 commit comments

Comments
 (0)