feat: add a few string tests

This commit is contained in:
ndom91 2024-10-22 10:49:05 +02:00 committed by Nico Domino
parent 3eed596cc8
commit 02d5a88612

View File

@ -0,0 +1,24 @@
import { camelCaseToTitleCase } from './string';
import { describe, expect, test } from 'vitest';
describe.concurrent('Commit types handled correctly', () => {
test('localAndRemote', () => {
expect(camelCaseToTitleCase('localAndRemote')).toEqual('Local And Remote');
});
test('local', () => {
expect(camelCaseToTitleCase('local')).toEqual('Local');
});
test('remote', () => {
expect(camelCaseToTitleCase('remote')).toEqual('Remote');
});
test('localAndShadow', () => {
expect(camelCaseToTitleCase('localAndShadow')).toEqual('Local And Shadow');
});
test('LocalAndShadow', () => {
expect(camelCaseToTitleCase('LocalAndShadow')).toEqual('Local And Shadow');
});
});