YesPlayMusic/packages/server/test/routes/example.test.ts
2023-01-07 16:07:44 +08:00

12 lines
239 B
TypeScript

import { test } from 'tap'
import { build } from '../helper'
test('example is loaded', async t => {
const app = await build(t)
const res = await app.inject({
url: '/example',
})
t.equal(res.payload, 'this is an example')
})