From 3d5e7475901c5eb7741f461a35febdb996bcfd1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Mon, 25 Sep 2023 17:10:30 +0200 Subject: [PATCH] fix(syncing-server): another spec --- .../AddNotificationsForUsers.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/syncing-server/src/Domain/UseCase/Messaging/AddNotificationsForUsers/AddNotificationsForUsers.spec.ts b/packages/syncing-server/src/Domain/UseCase/Messaging/AddNotificationsForUsers/AddNotificationsForUsers.spec.ts index 126c774a1..58e694b56 100644 --- a/packages/syncing-server/src/Domain/UseCase/Messaging/AddNotificationsForUsers/AddNotificationsForUsers.spec.ts +++ b/packages/syncing-server/src/Domain/UseCase/Messaging/AddNotificationsForUsers/AddNotificationsForUsers.spec.ts @@ -6,6 +6,7 @@ import { NotificationPayload, NotificationType, SharedVaultUser, + NotificationPayloadIdentifierType, } from '@standardnotes/domain-core' import { SharedVaultUserRepositoryInterface } from '../../../SharedVault/User/SharedVaultUserRepositoryInterface' import { AddNotificationForUser } from '../AddNotificationForUser/AddNotificationForUser' @@ -35,7 +36,10 @@ describe('AddNotificationsForUsers', () => { addNotificationForUser.execute = jest.fn().mockResolvedValue(Result.ok()) payload = NotificationPayload.create({ - sharedVaultUuid: Uuid.create('0e8c3c7e-3f1a-4f7a-9b5a-5b2b0a7d4b1e').getValue(), + primaryIdentifier: Uuid.create('0e8c3c7e-3f1a-4f7a-9b5a-5b2b0a7d4b1e').getValue(), + primaryIndentifierType: NotificationPayloadIdentifierType.create( + NotificationPayloadIdentifierType.TYPES.SharedVaultUuid, + ).getValue(), type: NotificationType.create(NotificationType.TYPES.SharedVaultFileUploaded).getValue(), version: '1.0', }).getValue()