implement POST endpoint to create api tokens

This commit is contained in:
Dieter Stinglhamber 2021-08-26 14:37:55 +02:00
parent 78e5bd98d3
commit b50afb69d5

View File

@ -11,7 +11,7 @@ describe('API Token Controller', () => {
type: 'read-only',
};
test('Fails if API Token already exists', async () => {
test('Fails if API Token already exist', async () => {
const exists = jest.fn(() => true);
const badRequest = jest.fn();
const ctx = createContext({ body }, { badRequest });