formatter tests
Some checks failed
Some checks failed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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.');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user