Skip to content

Commit

Permalink
fix integer vs double test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianekc authored and msporny committed Jan 16, 2023
1 parent 117ff27 commit 5f48de0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const generateJsonProductionTests = (
expect(produce(value)).toBe(true);
});
} else if(typeof value === 'number') {
if(!Number.isInteger(value)) {
if(Number.isInteger(value)) {
it('6.2.1 JSON Production - integer: A JSON Number without a ' +
'decimal or fractional component.', () => {
expect(produce(value)).toBe(true);
Expand Down

0 comments on commit 5f48de0

Please sign in to comment.