Skip to content

Commit

Permalink
added test for fixed create method
Browse files Browse the repository at this point in the history
  • Loading branch information
Agamnentzar committed May 18, 2015
1 parent 708a29c commit c8d056a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mongoose/mongoose-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ Model.remove((err: any, res: IActor[]) => {});
Model.save((err: any, res: IActor, numberAffected: number) => {});
Model.create({ type: 'jelly bean' }, { type: 'snickers' }, (err: any, res1: IActor, res2: IActor) => {});
Model.create({ type: 'jawbreaker' });
Model.create({ type: 'muffin' }).then(function (res) {
res.name;
});
Model.distinct('url', { clicks: {$gt: 100}}, (err: any, result: IActor[]) => {});
Model.distinct('url');

Expand Down

0 comments on commit c8d056a

Please sign in to comment.