Skip to content

Commit

Permalink
test: add missing property to test data
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Oct 11, 2024
1 parent a4edff2 commit 34669ef
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions apps/admin/src/__tests__/mocks/mockDefaultPlatform.ts
Original file line number Diff line number Diff line change
@@ -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',
};
});

0 comments on commit 34669ef

Please sign in to comment.