Skip to content

Commit

Permalink
made function non async
Browse files Browse the repository at this point in the history
  • Loading branch information
shubanker committed Aug 19, 2022
1 parent 6a19731 commit 5eb11dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/schema.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2682,8 +2682,8 @@ describe('schema', function() {
assert.equal(TestSchema.path('testprop.$*').instance, 'Number');
assert.equal(TestSchema.path('testprop.$*').options.ref, 'OtherModel');
});
it('disallows setting special properties with `add()` or constructor (gh-12085)', async function() {

it('disallows setting special properties with `add()` or constructor (gh-12085)', function() {
const maliciousPayload = '{"__proto__.toString": "Number"}';

assert.throws(() => {
Expand Down

0 comments on commit 5eb11dd

Please sign in to comment.