Skip to content

Commit

Permalink
test(notifications): adjusts testing data to not conflict in db anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel committed Jul 11, 2024
1 parent ab21614 commit 6e85294
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/notification/tests/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 6e85294

Please sign in to comment.