ft_transcendence/src/db/test/routes/root.test.ts
Maieul BOYER 985c636360
yes
2025-06-13 23:38:13 +02:00

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 })
})