Skip to content
Browse files

Adding some Object.keys tests for IE < 9, related to #198

  • Loading branch information...
1 parent 1104623 commit fa593e3ff28f09a7e74961b10239143b053945da @ljharb ljharb committed Jan 4, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/spec/s-object.js
View
6 tests/spec/s-object.js
@@ -48,6 +48,12 @@ describe('Object', function () {
}
}).toThrow(e);
});
+
+ it('should not enumerate over non-enumerable properties', function () {
+ var Foo = function () {};
+ expect(Object.keys(Foo.prototype)).toEqual([]);
+ expect(Object.keys(Boolean.prototype)).toEqual([]);
+ });
});
describe("Object.isExtensible", function () {

0 comments on commit fa593e3

Please sign in to comment.
Something went wrong with that request. Please try again.