YesPlayMusic/packages/server/test/routes/example.test.ts
2022-10-28 20:29:04 +08:00

12 lines
240 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')
})