15 lines
582 B
TypeScript
15 lines
582 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { TeamCreationStatusFormatter } from './TeamCreationStatusFormatter';
|
|
|
|
describe('TeamCreationStatusFormatter', () => {
|
|
describe('statusMessage', () => {
|
|
it('should return success message when team created successfully', () => {
|
|
expect(TeamCreationStatusFormatter.statusMessage(true)).toBe('Team created successfully!');
|
|
});
|
|
|
|
it('should return failure message when team creation failed', () => {
|
|
expect(TeamCreationStatusFormatter.statusMessage(false)).toBe('Failed to create team.');
|
|
});
|
|
});
|
|
});
|