mirror of
https://github.com/directus/directus.git
synced 2026-02-06 16:35:06 -05:00
12 lines
305 B
TypeScript
12 lines
305 B
TypeScript
import { pluralize, depluralize } from '../../src/utils/pluralize';
|
|
|
|
describe('pluralize', () => {
|
|
it('adds an s to the end of the string', () => {
|
|
expect(pluralize('test')).toBe('tests');
|
|
});
|
|
|
|
it('removes an s to the end of the string', () => {
|
|
expect(depluralize('tests')).toBe('test');
|
|
});
|
|
});
|