Skip to content

Commit a5e4e61

Browse files
committed
test: add missing assertion to assert no further warnings
1 parent b8d354f commit a5e4e61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/schema.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,6 +3315,7 @@ describe('schema', function() {
33153315
ObjectKeySchema.index({ type: 1, key: 1 });
33163316
ObjectKeySchema.index({ key: 1, type: -1 });
33173317
ObjectKeySchema.index({ key: 1, type: 1 }, { unique: true, name: 'special index' });
3318+
assert.equal(utils.warn.getCalls().length, 2);
33183319
} finally {
33193320
sinon.restore();
33203321
}

0 commit comments

Comments
 (0)