ringtools-server-ts/test/controllers/main.controller.test.ts

15 lines
305 B
TypeScript
Raw Normal View History

import {testBuild} from '../helper';
2022-01-14 01:20:19 +01:00
describe('main controller tests', () => {
const app = testBuild();
2022-01-14 01:20:19 +01:00
test('Main controller should do nothing', async () => {
const response = await app.inject({
url: '/',
method: 'GET',
});
2022-01-14 01:20:19 +01:00
expect(response.statusCode).toBe(404);
2022-01-14 01:20:19 +01:00
});
});