mirror of
https://github.com/ringtools/ringtools-server-ts.git
synced 2024-05-16 05:44:40 +02:00
18 lines
370 B
TypeScript
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());
|
|
});
|