mirror of
https://github.com/pterodactyl/panel.git
synced 2026-02-06 06:52:07 -06:00
17 lines
470 B
TypeScript
17 lines
470 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { capitalize } from '@/lib/strings';
|
|
|
|
describe('@/lib/strings.ts', () => {
|
|
describe('capitalize()', () => {
|
|
it('should capitalize a string', () => {
|
|
expect(capitalize('foo bar')).equals('Foo bar');
|
|
expect(capitalize('FOOBAR')).equals('Foobar');
|
|
});
|
|
|
|
it('should handle empty strings', () => {
|
|
expect(capitalize('')).equals('');
|
|
});
|
|
});
|
|
});
|