update mailbox on username change

This commit is contained in:
Girish Ramakrishnan
2016-09-25 23:51:39 -07:00
parent 1f1f56b431
commit 55b80ac81f
3 changed files with 21 additions and 8 deletions

View File

@@ -187,6 +187,14 @@ describe('User', function () {
});
});
it('did create mailbox', function (done) {
mailboxdb.getMailbox(USERNAME.toLowerCase(), function (error, mailbox) {
expect(error).to.be(null);
expect(mailbox.ownerType).to.be(mailboxdb.TYPE_USER);
done();
});
});
it('fails because of invalid BAD_FIELD', function (done) {
expect(function () {
user.create(EMAIL, {}, function () {});