mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix pushGroups test
This commit is contained in:
@@ -81,7 +81,7 @@ describe('Notifications', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should push a notification to groups', function (done) {
|
it('should push a notification to groups', function (done) {
|
||||||
notifications.pushGroup(notification, ['registered-users', 'administrators'], function (err) {
|
notifications.pushGroups(notification, ['registered-users', 'administrators'], function (err) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
db.isSortedSetMember('uid:' + uid + ':notifications:unread', notification.nid, function (err, isMember) {
|
db.isSortedSetMember('uid:' + uid + ':notifications:unread', notification.nid, function (err, isMember) {
|
||||||
|
|||||||
Reference in New Issue
Block a user