Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
made function non async
  • Loading branch information
shubanker committed Aug 19, 2022
commit 5eb11dd5d434ba24ea10d19e5eb2054a276bb22e
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