Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Lugavere authored and Ben Lugavere committed Sep 21, 2017
1 parent 2209232 commit 85dc076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ describe('Mongoose Repository', () => {
it('should clear a collection', () => {
Model.find.returns(Model);
Model.remove.yields(null, {});
return repo.clear(res => {
return repo.clear().then(res => {
expect(Model.remove.called).toBe(true, 'remove method not called');
expect(typeof res).toEqual('object');
expect(res instanceof Mockgoose).toEqual(false);
Expand Down

0 comments on commit 85dc076

Please sign in to comment.