optimize test

This commit is contained in:
wuls 2023-05-26 15:08:11 +08:00 committed by Nate Moore
parent 12c0b43e42
commit 36c5ab3140
2 changed files with 3 additions and 4 deletions

View file

@ -25,6 +25,9 @@ describe('behavior from middleware', () => {
fixture = await loadFixture({
root: './fixtures/node-middleware/',
output: 'server',
server: {
host: true
},
adapter: nodejs({ mode: 'standalone' }),
});
await fixture.build();

View file

@ -1,5 +1,4 @@
import { expect } from 'chai';
import { fetch } from 'undici';
describe('URL protocol', () => {
/** @type {import('./test-utils').Fixture} */
@ -7,9 +6,6 @@ describe('URL protocol', () => {
before(async () => {
fixture = await loadFixture({
server: {
host: true
},
root: './fixtures/url-protocol/',
output: 'server',
adapter: nodejs({ mode: 'standalone' }),