mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 15:20:39 +01:00
create a notif before pruning
This commit is contained in:
@@ -252,7 +252,14 @@ describe('Notifications', function () {
|
||||
});
|
||||
|
||||
it('should prune notifications', function (done) {
|
||||
notifications.prune(done);
|
||||
notifications.create({
|
||||
bodyShort: 'bodyShort',
|
||||
nid: 'tobedeleted',
|
||||
path: '/notification/path',
|
||||
}, function (err) {
|
||||
assert.ifError(err);
|
||||
notifications.prune(done);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user