optimize test
This commit is contained in:
parent
12c0b43e42
commit
36c5ab3140
2 changed files with 3 additions and 4 deletions
|
@ -25,6 +25,9 @@ describe('behavior from middleware', () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
root: './fixtures/node-middleware/',
|
root: './fixtures/node-middleware/',
|
||||||
output: 'server',
|
output: 'server',
|
||||||
|
server: {
|
||||||
|
host: true
|
||||||
|
},
|
||||||
adapter: nodejs({ mode: 'standalone' }),
|
adapter: nodejs({ mode: 'standalone' }),
|
||||||
});
|
});
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { expect } from 'chai';
|
import { expect } from 'chai';
|
||||||
import { fetch } from 'undici';
|
|
||||||
|
|
||||||
describe('URL protocol', () => {
|
describe('URL protocol', () => {
|
||||||
/** @type {import('./test-utils').Fixture} */
|
/** @type {import('./test-utils').Fixture} */
|
||||||
|
@ -7,9 +6,6 @@ describe('URL protocol', () => {
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
server: {
|
|
||||||
host: true
|
|
||||||
},
|
|
||||||
root: './fixtures/url-protocol/',
|
root: './fixtures/url-protocol/',
|
||||||
output: 'server',
|
output: 'server',
|
||||||
adapter: nodejs({ mode: 'standalone' }),
|
adapter: nodejs({ mode: 'standalone' }),
|
||||||
|
|
Loading…
Reference in a new issue