Skip to content

Commit

Permalink
test: fix deno tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 24, 2023
1 parent fed9a3f commit 6f7b659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/schema.select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ describe('schema select option', function() {
assert.equal(findByIdDocAgain.isSelected('name'), false);
assert.equal(findByIdDocAgain.isSelected('docs.name'), false);
assert.strictEqual(undefined, findByIdDocAgain.name);
/*const findUpdateDoc = await Test.findOneAndUpdate({ _id: doc._id });
const findUpdateDoc = await Test.findOneAndUpdate({ _id: doc._id }, { name: 'the excluded' });
assert.equal(findUpdateDoc.isSelected('name'), false);
assert.equal(findUpdateDoc.isSelected('docs.name'), false);
assert.strictEqual(undefined, findUpdateDoc.name);
const findAndDeleteDoc = await Test.findOneAndDelete({ _id: doc._id });
assert.equal(findAndDeleteDoc.isSelected('name'), false);
assert.equal(findAndDeleteDoc.isSelected('docs.name'), false);
assert.strictEqual(undefined, findAndDeleteDoc.name);*/
assert.strictEqual(undefined, findAndDeleteDoc.name);
});

it('including paths through schematype', async function() {
Expand Down

0 comments on commit 6f7b659

Please sign in to comment.