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