Files
gridpilot.gg/apps/website/lib/formatters/LeagueCreationStatusFormatter.test.ts
Marc Mintel 3db2209d2a
Some checks failed
CI / lint-typecheck (push) Failing after 4m52s
CI / tests (push) Has been skipped
CI / contract-tests (push) Has been skipped
CI / e2e-tests (push) Has been skipped
CI / comment-pr (push) Has been skipped
CI / commit-types (push) Has been skipped
formatter tests
2026-01-25 11:17:47 +01:00

15 lines
600 B
TypeScript

import { describe, it, expect } from 'vitest';
import { LeagueCreationStatusFormatter } from './LeagueCreationStatusFormatter';
describe('LeagueCreationStatusFormatter', () => {
describe('statusMessage', () => {
it('should return success message when league created successfully', () => {
expect(LeagueCreationStatusFormatter.statusMessage(true)).toBe('League created successfully!');
});
it('should return failure message when league creation failed', () => {
expect(LeagueCreationStatusFormatter.statusMessage(false)).toBe('Failed to create league.');
});
});
});