From 5eb11dd5d434ba24ea10d19e5eb2054a276bb22e Mon Sep 17 00:00:00 2001 From: Shubanker Chourasia Date: Fri, 19 Aug 2022 13:48:46 +0530 Subject: [PATCH] made function non async --- test/schema.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/schema.test.js b/test/schema.test.js index 711054abccd..d2bff3ce34e 100644 --- a/test/schema.test.js +++ b/test/schema.test.js @@ -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(() => {