Skip to content

Commit

Permalink
test: add root path 200 test
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jun 21, 2021
1 parent b3b9e6b commit d58ba09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/server.test.js
Original file line number Diff line number Diff line change
@@ -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' })
})

0 comments on commit d58ba09

Please sign in to comment.