ringtools-server-ts/test/controllers/main.controller.test.ts
2022-01-14 01:20:19 +01:00

18 lines
370 B
TypeScript

import tap from 'tap';
import {testBuild} from '../../test/helper';
tap.test('Main controller should do nothing', async (t: any) => {
t.plan(1);
const app = await testBuild(t);
const response = await app.inject({
url: '/',
method: 'GET',
});
t.equal(response.statusCode, 404, 'returns a status code of 404');
t.teardown(() => app.close());
});