Skip to content

Commit

Permalink
test(schema.select.test): clear data before test
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Sep 21, 2023
1 parent e67f6d0 commit d951be5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/schema.select.test.js
Expand Up @@ -26,6 +26,9 @@ describe('schema select option', function() {
afterEach(() => require('./util').stopRemainingOps(db));

it('excluding paths through schematype', async function() {
// data clearing is required for this test, because in deno some other test leaks a "_id: immutable" index
require('./util').clearTestData(db);

const schema = new Schema({
thin: Boolean,
name: { type: String, select: false },
Expand Down

0 comments on commit d951be5

Please sign in to comment.