test invalid expiry

This commit is contained in:
Barış Soner Uşaklı
2017-05-13 22:45:13 -04:00
parent a28b76861d
commit ed9a429ca9
2 changed files with 15 additions and 8 deletions

View File

@@ -827,6 +827,13 @@ describe('User', function () {
});
});
});
it('should error if until is NaN', function (done) {
User.ban(testUid, 'asd', function (err) {
assert.equal(err.message, '[[error:ban-expiry-missing]]');
done();
});
});
});
describe('digests', function () {