Skip to content

Commit

Permalink
add test for NaN and Infinity - closes yeoman#19
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 27, 2015
1 parent e5a5839 commit 6b6f29a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
undefined: undefined,
function: function () {},
regexp: /./,
NaN: NaN,
Infinity: Infinity,
circular: "[Circular]"
}
4 changes: 3 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ it('should stringify an object', function () {
null: null,
undefined: undefined,
function: function () {},
regexp: /./
regexp: /./,
NaN: NaN,
Infinity: Infinity
};

obj.circular = obj;
Expand Down

0 comments on commit 6b6f29a

Please sign in to comment.