From 9f2268b5766f8c2b443e8f6c3eea37d8bc981ffd Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Fri, 11 Oct 2024 14:30:01 +0200 Subject: [PATCH] test: add missing property to test data --- .../__tests__/mocks/mockDefaultPlatform.ts | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/admin/src/__tests__/mocks/mockDefaultPlatform.ts b/apps/admin/src/__tests__/mocks/mockDefaultPlatform.ts index 807bbb888..25cc71fd7 100644 --- a/apps/admin/src/__tests__/mocks/mockDefaultPlatform.ts +++ b/apps/admin/src/__tests__/mocks/mockDefaultPlatform.ts @@ -1,10 +1,14 @@ import {vi} from 'vitest'; +import {type GlobalAdminContext} from '../../types'; -export const mockDefaultPlatform = vi.fn(() => ({ - backofficeUrl: 'https://backoffice.test.myparcel.nl', - defaultCarrier: 'postnl', - defaultCarrierId: 1, - human: 'Test', - localCountry: 'NL', - name: 'test', -})); +export const mockDefaultPlatform = vi.fn((): GlobalAdminContext['platform'] => { + return { + backofficeUrl: 'https://backoffice.test.myparcel.nl', + defaultCarrier: 'postnl', + defaultCarrierId: 1, + human: 'Test', + localCountry: 'NL', + name: 'test', + supportUrl: 'https://developer.myparcel.nl/contact', + }; +});