Skip to content

Commit

Permalink
update upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchoz49 committed May 5, 2023
1 parent 13d1a4b commit 48cbedf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/upgrade.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ import { test } from 'uvu'
import * as assert from 'uvu/assert'
import Fastify from 'fastify'

test('upgrade to both servers', async t => {
import { serverFactory } from '../src/index.js'

test('upgrade to both servers', async () => {
const results = await lookup('localhost', { all: true })
if (results.length !== 2) {
throw new Error('should test both servers')
}

const app = Fastify()
const app = Fastify({
serverFactory
})

app.get('/', (req, res) => {
})
Expand Down

0 comments on commit 48cbedf

Please sign in to comment.