Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgjsag67251 committed Aug 14, 2024
1 parent 24abd09 commit af94119
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testing/collection_hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ describe('It should work with collection:hooks', function () {
})

it('Should use direct methods when available: ' + JSON.stringify(options), function () {
let withDirect = true;
let withDirect = false;

const id = Collection.insert({ someData: true });

Collection.before.find(function () {
withDirect = false;
withDirect = true;
});

const handle = Collection.find({
Expand All @@ -69,6 +71,7 @@ describe('It should work with collection:hooks', function () {
assert.isTrue(withDirect, 'Used direct');

handle.stop();
Collection.remove(id);
})
})
});

0 comments on commit af94119

Please sign in to comment.