12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { test } from 'node:test'
|
|
import * as assert from 'node:assert'
|
|
import { build } from '../helper.js'
|
|
|
|
test('default root route', async (t) => {
|
|
const app = await build(t)
|
|
|
|
const res = await app.inject({
|
|
url: '/'
|
|
})
|
|
assert.deepStrictEqual(JSON.parse(res.payload), { root: true })
|
|
})
|