Skip to content

Commit

Permalink
[Tests] parseInt: add another test for NaN parsing
Browse files Browse the repository at this point in the history
Relates to es-shims#433.
  • Loading branch information
ljharb committed Mar 29, 2017
1 parent 5bd3c22 commit ad60053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/spec/s-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ describe('global methods', function () {
});

it('NaN parsing', function () {
expect(parseInt()).toBeNaN();
expect(parseInt(undefined)).toBeNaN();
expect(parseInt(null)).toBeNaN();
expect(parseInt(NaN)).toBeNaN();
Expand Down

0 comments on commit ad60053

Please sign in to comment.