Skip to content

Commit

Permalink
♻️ fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alonronin committed Apr 3, 2019
1 parent be6de68 commit 3a59b32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,22 @@ All operations work with `exec`, `promise` and `callback`.
});
```

- you can mock `.popultate` in your mocked result just be sure to change
- you can mock `.populate` in your mocked result just be sure to change
the `Schema`'s path to appropriate type (eg: `Object` | `Mixed`):

```js
User.schema.path('foreignKey', Object);

const doc = {
email: '[email protected]',
email: '[email protected]',
foreignKey: {
_id: '5ca4af76384306089c1c30ba',
_id: '5ca4af76384306089c1c30ba',
name: 'test',
value: 'test',
},
name: 'Name',
saveCount: 1,
};
};

mockingoose(User).toReturn(doc);

Expand Down

0 comments on commit 3a59b32

Please sign in to comment.