mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
test invalid expiry
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user