From dc5fc6c6d6c009e622d339d935ed9c5c9854eebe Mon Sep 17 00:00:00 2001 From: Keno Dressel Date: Thu, 11 Jul 2024 15:21:37 +0200 Subject: [PATCH] test(notifications): adjusts testing data to not conflict in db anymore --- modules/notification/tests/notification.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/notification/tests/notification.js b/modules/notification/tests/notification.js index 5bb6d224..e37c1306 100644 --- a/modules/notification/tests/notification.js +++ b/modules/notification/tests/notification.js @@ -27,6 +27,14 @@ describe('Notifications', () => { type: NOTIFICATION_TYPES.COMMENT_ON_COMMENT, }; + const testData2 = { + receiver: publicKey, + entityId: 1, + sender: 'ak_sender', + entityType: ENTITY_TYPES.COMMENT, + type: NOTIFICATION_TYPES.COMMENT_ON_COMMENT, + }; + const seedDB = getDBSeedFunction([Retip, Notification, Comment]); after(() => { @@ -305,7 +313,7 @@ describe('Notifications', () => { truncate: true, }); createdNotification = await Notification.create(testData); - createdNotification2 = await Notification.create(testData); + createdNotification2 = await Notification.create(testData2); }); it('it should MODIFY a single notification for a user', async () => {