wip league admin tools
This commit is contained in:
@@ -74,7 +74,7 @@ describe('ManageSeasonLifecycleUseCase', () => {
|
||||
const [firstCall] = output.present.mock.calls;
|
||||
const [firstArg] = firstCall as [ManageSeasonLifecycleResult];
|
||||
let presented = firstArg;
|
||||
expect(presented.season.status).toBe('active');
|
||||
expect(presented.season.status.toString()).toBe('active');
|
||||
|
||||
(output.present as Mock).mockClear();
|
||||
|
||||
@@ -92,7 +92,7 @@ describe('ManageSeasonLifecycleUseCase', () => {
|
||||
const [[arg]] = output.present.mock.calls as [[ManageSeasonLifecycleResult]];
|
||||
presented = arg;
|
||||
}
|
||||
expect(presented.season.status).toBe('completed');
|
||||
expect(presented.season.status.toString()).toBe('completed');
|
||||
|
||||
(output.present as Mock).mockClear();
|
||||
|
||||
@@ -111,7 +111,7 @@ describe('ManageSeasonLifecycleUseCase', () => {
|
||||
expect(presentedRaw).toBeDefined();
|
||||
presented = presentedRaw as ManageSeasonLifecycleResult;
|
||||
}
|
||||
expect(presented.season.status).toBe('archived');
|
||||
expect(presented.season.status.toString()).toBe('archived');
|
||||
});
|
||||
|
||||
it('propagates domain invariant errors for invalid transitions', async () => {
|
||||
|
||||
Reference in New Issue
Block a user