We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43344d3 commit 67de31bCopy full SHA for 67de31b
1 file changed
README.md
@@ -330,18 +330,16 @@ module.exports = App
330
'use strict'
331
332
const { test } = require('node:test')
333
-const Fastify = require('fastify')
334
-const App = require('./app.js')
+const fastify = require('./app.js')
335
336
test('connect to /', async (t) => {
337
t.plan(1)
338
339
- const fastify = Fastify()
340
- fastify.register(App)
341
t.after(() => fastify.close())
342
await fastify.ready()
343
344
const ws = await fastify.injectWS('/', {headers: { "api-key" : "some-random-key" }})
+
345
let resolve;
346
const promise = new Promise(r => { resolve = r })
347
0 commit comments