13 lines
292 B
TypeScript
13 lines
292 B
TypeScript
import { test } from 'node:test'
|
|
import * as assert from 'node:assert'
|
|
import { build } from '../helper.js'
|
|
|
|
test('example is loaded', async (t) => {
|
|
const app = await build(t)
|
|
|
|
const res = await app.inject({
|
|
url: '/example'
|
|
})
|
|
|
|
assert.equal(res.payload, 'this is an example')
|
|
})
|