fix(syncing-server): another spec

This commit is contained in:
Karol Sójko 2023-09-25 17:10:30 +02:00
parent 94467747ac
commit 3d5e747590
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -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()