Skip to content

Commit

Permalink
add #345 - related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 11, 2017
1 parent 09abf59 commit dd30ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/library/es.symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ if (JSON) {
if (typeof Symbol() === 'symbol') {
assert.strictEqual(JSON.stringify(Object(Symbol('symbol'))), '{}', 'boxed symbol');
}
assert.strictEqual(JSON.stringify(undefined, () => 42), '42', 'replacer works with top-level undefined');
});
}

Expand Down
1 change: 1 addition & 0 deletions tests/tests/es.symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ if (JSON) {
if (typeof Symbol() === 'symbol') {
assert.strictEqual(JSON.stringify(Object(Symbol('symbol'))), '{}', 'boxed symbol');
}
assert.strictEqual(JSON.stringify(undefined, () => 42), '42', 'replacer works with top-level undefined');
});
}

Expand Down

0 comments on commit dd30ef1

Please sign in to comment.