add mailboxdb.getGroup tests

This commit is contained in:
Girish Ramakrishnan
2016-09-27 16:34:28 -07:00
parent 20708ad25a
commit a91ae2b9aa
2 changed files with 18 additions and 0 deletions

View File

@@ -1272,6 +1272,13 @@ describe('database', function () {
});
});
it('cannot get non-existing group', function (done) {
mailboxdb.getGroup('random', function (error) {
expect(error.reason).to.be(DatabaseError.NOT_FOUND);
done();
});
});
it('unset aliases', function (done) {
mailboxdb.setAliasesForName('support', [ ], function (error) {
expect(error).to.be(null);