Skip to content

Count Opertor

Compare
Choose a tag to compare
@alonronin alonronin released this 09 Jan 18:53
· 127 commits to master since this release

Support count operator. Thanks @kevinfez for the issue.

Example

it('should count', () => {
  const count = 2;
  mockingoose.User.toReturn(count, 'count');

  return User.count().then(result => {
    expect(result).toBe(count);
  });
});