Skip to content

Commit

Permalink
[Tests] Extra check on Object.keys(arguments)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 18, 2015
1 parent 4011133 commit 37a9eff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/spec/s-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ describe('Object', function () {
it('works with an arguments object', function () {
(function () {
expect(arguments.length).toBe(3);
expect(Object.keys(arguments).length).toBe(arguments.length);
expect(Object.keys(arguments)).toEqual(['0', '1', '2']);
}(1, 2, 3));
});
Expand Down

0 comments on commit 37a9eff

Please sign in to comment.