mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Co-authored-by: Jan Arends <jan.arends@mailbox.org> Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
13 lines
383 B
TypeScript
13 lines
383 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { getEndpoint } from './get-endpoint.js';
|
|
|
|
describe('getEndpoint', () => {
|
|
it('When a system collection is passed in', () => {
|
|
expect(getEndpoint('directus_users')).toBe('/users');
|
|
});
|
|
|
|
it('When a non-system collection is passed in', () => {
|
|
expect(getEndpoint('user_collection')).toBe('/items/user_collection');
|
|
});
|
|
});
|