Skip to content

Commit 6097a3c

Browse files
committed
test ping route
1 parent ecb53e1 commit 6097a3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/routes-test.js

+7
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,10 @@ test('regex test', async t => {
5959
const result = await axios.post(`${url}/${config.token}`, payload)
6060
t.is(result.status, 204)
6161
})
62+
63+
test('ping route', async t => {
64+
const url = await getUrl(srv)
65+
const { data } = await axios.get(url + '/ping')
66+
console.log(data)
67+
t.is(data, 'pong')
68+
})

0 commit comments

Comments
 (0)