mirror of
https://github.com/directus/directus.git
synced 2026-02-12 05:05:04 -05:00
13 lines
407 B
TypeScript
13 lines
407 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_system_collection')).toBe('/system_collection');
|
|
});
|
|
|
|
it('When a non-system collection is passed in', () => {
|
|
expect(getEndpoint('user_collection')).toBe('/items/user_collection');
|
|
});
|
|
});
|