Skip to content

Commit 5eb11dd

Browse files
committedAug 19, 2022
made function non async
1 parent 6a19731 commit 5eb11dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/schema.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2682,8 +2682,8 @@ describe('schema', function() {
26822682
assert.equal(TestSchema.path('testprop.$*').instance, 'Number');
26832683
assert.equal(TestSchema.path('testprop.$*').options.ref, 'OtherModel');
26842684
});
2685-
2686-
it('disallows setting special properties with `add()` or constructor (gh-12085)', async function() {
2685+
2686+
it('disallows setting special properties with `add()` or constructor (gh-12085)', function() {
26872687
const maliciousPayload = '{"__proto__.toString": "Number"}';
26882688

26892689
assert.throws(() => {

0 commit comments

Comments
 (0)