This commit is contained in:
magdo
2025-11-25 00:07:54 +01:00
parent 05a1ad4017
commit bf9503c7be
7 changed files with 295 additions and 52 deletions
@@ -14,9 +14,11 @@ describe('DeckMapper', () => {
],
playedNumber: 5,
ctype: CType.PUBLIC,
updatedate: new Date('2024-01-02'),
updateDate: new Date('2024-01-02'),
state: State.ACTIVE,
organization: null,
user: { username: 'testuser', id: 'user-123', isAdmin: false },
isEditable: jest.fn().mockReturnValue(true),
...overrides
});
@@ -11,9 +11,10 @@ describe('OrganizationMapper', () => {
contactemail: 'john@test.org',
state: OrganizationState.ACTIVE as OrganizationStateType,
regdate: new Date('2024-01-01'),
updatedate: new Date('2024-01-02'),
updateDate: new Date('2024-01-02'),
url: 'https://test.org',
userinorg: 5,
maxOrganizationalDecks: 10,
users: [
{ id: 'user-1', name: 'User One' },
{ id: 'user-2', name: 'User Two' }
@@ -85,9 +86,10 @@ describe('OrganizationMapper', () => {
contactemail: 'john@test.org',
state: OrganizationState.ACTIVE,
regdate: new Date('2024-01-01'),
updatedate: new Date('2024-01-02'),
updateDate: new Date('2024-01-02'),
url: 'https://test.org',
userinorg: 5,
maxOrganizationalDecks: 10,
users: ['user-1', 'user-2']
});
});