Skip to content

Commit

Permalink
fixup: review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jul 5, 2022
1 parent c1e3974 commit 707a941
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/node/extended_json_tests.js
Expand Up @@ -509,7 +509,7 @@ describe('Extended JSON', function () {
// expect(() => EJSON.serialize(badMap)).to.throw(); // uncomment when EJSON supports ES6 Map
});

it('should correctly deserialize objects containing __proto__ keys', function (done) {
it('should correctly deserialize objects containing __proto__ keys', function () {
const original = { ['__proto__']: { a: 42 } };
const serialized = EJSON.stringify(original);
expect(serialized).to.equal('{"__proto__":{"a":42}}');
Expand All @@ -521,7 +521,6 @@ describe('Extended JSON', function () {
value: { a: 42 }
});
expect(deserialized.__proto__.a).to.equal(42);
done();
});

context('circular references', () => {
Expand Down

0 comments on commit 707a941

Please sign in to comment.