From 33023ea419c4ac36a6dff1441df7956cc3e34e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 13 May 2017 22:15:31 -0400 Subject: [PATCH] create a notif before pruning --- test/notifications.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/notifications.js b/test/notifications.js index 0100c78737..c5a22a6d2c 100644 --- a/test/notifications.js +++ b/test/notifications.js @@ -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); + }); });