Created
June 18, 2018 23:46
-
-
Save ldco2016/b3ed6d1f7f0f710eb10371039c89ad8d to your computer and use it in GitHub Desktop.
a couple of options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it('A model class can update one record', (done) => { | |
| assertName(User.findOneAndUpdate(joe._id, { name: 'Bill' }), done); | |
| }); | |
| it('A model class can find a record with an Id and update', (done) => { | |
| assertName(User.findByIdAndUpdate(joe._id, { name: 'Bill' }), done); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment