diff --git a/packages/analytics/src/Domain/UseCase/GetUserAnalyticsId/GetUserAnalyticsId.spec.ts b/packages/analytics/src/Domain/UseCase/GetUserAnalyticsId/GetUserAnalyticsId.spec.ts index 6b0231398..e43d5c216 100644 --- a/packages/analytics/src/Domain/UseCase/GetUserAnalyticsId/GetUserAnalyticsId.spec.ts +++ b/packages/analytics/src/Domain/UseCase/GetUserAnalyticsId/GetUserAnalyticsId.spec.ts @@ -14,7 +14,7 @@ describe('GetUserAnalyticsId', () => { beforeEach(() => { analyticsEntity = { id: 123, - userUuid: '1-2-3', + userUuid: '84c0f8e8-544a-4c7e-9adf-26209303bc1d', userEmail: 'test@test.te', } as jest.Mocked @@ -24,11 +24,11 @@ describe('GetUserAnalyticsId', () => { }) it('should return analytics id for a user by uuid', async () => { - expect(await (await createUseCase().execute({ userUuid: '1-2-3' })).analyticsId).toEqual(123) + expect((await createUseCase().execute({ userUuid: '1-2-3' })).analyticsId).toEqual(123) }) it('should return analytics id for a user by email', async () => { - expect(await (await createUseCase().execute({ userEmail: 'test@test.te' })).analyticsId).toEqual(123) + expect((await createUseCase().execute({ userEmail: 'test@test.te' })).analyticsId).toEqual(123) }) it('should throw error if user is missing analytics entity', async () => { diff --git a/packages/analytics/src/Domain/UseCase/SaveRevenueModification/SaveRevenueModification.spec.ts b/packages/analytics/src/Domain/UseCase/SaveRevenueModification/SaveRevenueModification.spec.ts index a18382e23..03e1cc7c2 100644 --- a/packages/analytics/src/Domain/UseCase/SaveRevenueModification/SaveRevenueModification.spec.ts +++ b/packages/analytics/src/Domain/UseCase/SaveRevenueModification/SaveRevenueModification.spec.ts @@ -46,7 +46,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeFalsy() @@ -64,7 +64,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeFalsy() @@ -82,7 +82,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeFalsy() @@ -102,7 +102,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeFalsy() @@ -123,7 +123,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeTruthy() @@ -143,7 +143,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeTruthy() @@ -163,7 +163,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeTruthy() @@ -183,7 +183,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeTruthy() @@ -203,7 +203,7 @@ describe('SaveRevenueModification', () => { planName: SubscriptionPlanName.create('PRO_PLAN').getValue(), subscriptionId: 1234, userEmail: Email.create('test@test.te').getValue(), - userUuid: Uuid.create('1-2-3').getValue(), + userUuid: Uuid.create('84c0f8e8-544a-4c7e-9adf-26209303bc1d').getValue(), }) expect(revenueOrError.isFailed()).toBeTruthy()