yes
This commit is contained in:
parent
2f991d9743
commit
985c636360
36 changed files with 6507 additions and 2 deletions
12
src/db/test/routes/root.test.ts
Normal file
12
src/db/test/routes/root.test.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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 })
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue