Files
directus/packages/utils/shared/get-endpoint.test.ts
Rijk van Zanten c48309ab68 Last eslint tweak (#18198)
* Should be there now

* Format
2023-04-14 17:40:50 -04:00

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');
});
});