Skip to content

Commit 9deee15

Browse files
test: update
1 parent c97673e commit 9deee15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/e2e/DevServer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const testBin = require('../helpers/test-bin');
3+
const { testBin } = require('../helpers/test-bin');
44
const isWebpack5 = require('../helpers/isWebpack5');
55

66
describe('DevServer', () => {

test/server/open-option.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ open.mockImplementation(() => {
1515
});
1616

1717
describe('open option', () => {
18-
it('should work with unspecified host', (done) => {
18+
it.only('should work with unspecified host', (done) => {
1919
const compiler = webpack(config);
2020
const server = new Server(compiler, {
2121
open: true,
@@ -27,7 +27,7 @@ describe('open option', () => {
2727
server.close(() => {
2828
expect(open.mock.calls[0]).toMatchInlineSnapshot(`
2929
Array [
30-
"http://localhost:8117/",
30+
"http://127.0.0.1:8117/",
3131
Object {
3232
"wait": false,
3333
},
@@ -54,7 +54,7 @@ describe('open option', () => {
5454
server.close(() => {
5555
expect(open.mock.calls[1]).toMatchInlineSnapshot(`
5656
Array [
57-
"http://localhost:8117/index.html",
57+
"http://127.0.0.1:8117/index.html",
5858
Object {
5959
"wait": false,
6060
},
@@ -80,7 +80,7 @@ describe('open option', () => {
8080
server.close(() => {
8181
expect(open.mock.calls[0]).toMatchInlineSnapshot(`
8282
Array [
83-
"http://localhost:8117/",
83+
"http://127.0.0.1:8117/",
8484
Object {
8585
"wait": false,
8686
},
@@ -107,7 +107,7 @@ describe('open option', () => {
107107
server.close(() => {
108108
expect(open.mock.calls[0]).toMatchInlineSnapshot(`
109109
Array [
110-
"http://localhost:8117/",
110+
"http://127.0.0.1:8117/",
111111
Object {
112112
"wait": false,
113113
},
@@ -134,7 +134,7 @@ describe('open option', () => {
134134
server.close(() => {
135135
expect(open.mock.calls[0]).toMatchInlineSnapshot(`
136136
Array [
137-
"http://localhost:8117/",
137+
"http://127.0.0.1:8117/",
138138
Object {
139139
"wait": false,
140140
},

0 commit comments

Comments
 (0)