Skip to content

Commit

Permalink
test: add missing assertion to assert no further warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 30, 2024
1 parent b8d354f commit a5e4e61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/schema.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3315,6 +3315,7 @@ describe('schema', function() {
ObjectKeySchema.index({ type: 1, key: 1 });
ObjectKeySchema.index({ key: 1, type: -1 });
ObjectKeySchema.index({ key: 1, type: 1 }, { unique: true, name: 'special index' });
assert.equal(utils.warn.getCalls().length, 2);
} finally {
sinon.restore();
}
Expand Down

0 comments on commit a5e4e61

Please sign in to comment.