mirror of
https://github.com/directus/directus.git
synced 2026-02-08 08:35:01 -05:00
11 lines
370 B
TypeScript
11 lines
370 B
TypeScript
import { getEndpoint } from '../../src/utils/get-endpoint';
|
|
|
|
describe('getEndpoint', () => {
|
|
it('When a system collection is passed in', () => {
|
|
expect(getEndpoint('directus_system_collection')).toBe('/system_collection');
|
|
});
|
|
it('When a non-system collection is passed in', () => {
|
|
expect(getEndpoint('user_collection')).toBe('/items/user_collection');
|
|
});
|
|
});
|