do not use userdb directly

This commit is contained in:
Girish Ramakrishnan
2016-06-07 09:59:29 -07:00
parent 3ae388602c
commit dc8fd2eab3
3 changed files with 27 additions and 4 deletions

View File

@@ -578,6 +578,19 @@ describe('User', function () {
});
});
describe('count', function () {
before(createOwner);
after(cleanupUsers);
it('succeeds', function (done) {
user.count(function (error, count) {
expect(error).to.not.be.ok();
expect(count).to.be(1);
done();
});
});
});
describe('set password', function () {
before(createOwner);
after(cleanupUsers);