File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ describe('schema select option', function() {
55
55
assert . equal ( findByIdDocAgain . isSelected ( 'name' ) , false ) ;
56
56
assert . equal ( findByIdDocAgain . isSelected ( 'docs.name' ) , false ) ;
57
57
assert . strictEqual ( undefined , findByIdDocAgain . name ) ;
58
- /* const findUpdateDoc = await Test.findOneAndUpdate({ _id: doc._id });
58
+ const findUpdateDoc = await Test . findOneAndUpdate ( { _id : doc . _id } , { name : 'the excluded' } ) ;
59
59
assert . equal ( findUpdateDoc . isSelected ( 'name' ) , false ) ;
60
60
assert . equal ( findUpdateDoc . isSelected ( 'docs.name' ) , false ) ;
61
61
assert . strictEqual ( undefined , findUpdateDoc . name ) ;
62
62
const findAndDeleteDoc = await Test . findOneAndDelete ( { _id : doc . _id } ) ;
63
63
assert . equal ( findAndDeleteDoc . isSelected ( 'name' ) , false ) ;
64
64
assert . equal ( findAndDeleteDoc . isSelected ( 'docs.name' ) , false ) ;
65
- assert.strictEqual(undefined, findAndDeleteDoc.name);*/
65
+ assert . strictEqual ( undefined , findAndDeleteDoc . name ) ;
66
66
} ) ;
67
67
68
68
it ( 'including paths through schematype' , async function ( ) {
You can’t perform that action at this time.
0 commit comments