diff --git a/test/server.test.js b/test/server.test.js new file mode 100644 index 0000000..4ca28e9 --- /dev/null +++ b/test/server.test.js @@ -0,0 +1,12 @@ +import test from 'ava' + +test('/ should return status up', async (t) => { + const { build } = await import('../src/server.js') + const server = await build() + const response = await server.inject({ + method: 'GET', + url: '/', + }) + + t.deepEqual(await response.json(), { status: 'up' }) +})