mirror of
https://github.com/ringtools/ringtools-server-ts.git
synced 2024-05-16 05:44:40 +02:00
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
import {testBuild} from '../helper';
|
|
|
|
describe('channel controller tests', () => {
|
|
const app = testBuild();
|
|
|
|
test('Non-numeric channels should return 404', async () => {
|
|
const response = await app.inject({
|
|
url: '/channel/abcdefg',
|
|
method: 'GET',
|
|
});
|
|
|
|
expect(response.statusCode).toEqual(404);
|
|
});
|
|
});
|