Skip to content

Commit 6a0fbe4

Browse files
test: fix
1 parent 4447511 commit 6a0fbe4

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

test/__snapshots__/validate-options.test.js.snap.webpack4

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
exports[`options validate should throw an error on the "allowedHosts" option with '[""]' value 1`] = `
44
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
5-
- options.allowedHosts[0] should be an non-empty string."
5+
- options.allowedHosts[0] should be a non-empty string."
66
`;
77

88
exports[`options validate should throw an error on the "allowedHosts" option with '[]' value 1`] = `
99
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
10-
- options.allowedHosts should be an non-empty array."
10+
- options.allowedHosts should be a non-empty array."
1111
`;
1212

1313
exports[`options validate should throw an error on the "allowedHosts" option with '123' value 1`] = `
@@ -135,7 +135,7 @@ exports[`options validate should throw an error on the "client" option with '{"u
135135

136136
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"hostname":""}}' value 1`] = `
137137
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
138-
- options.client.webSocketURL.hostname should be an non-empty string.
138+
- options.client.webSocketURL.hostname should be a non-empty string.
139139
-> Tells clients connected to devServer to use the provided hostname."
140140
`;
141141

@@ -153,7 +153,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
153153

154154
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = `
155155
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
156-
- options.client.webSocketURL.port should be an non-empty string."
156+
- options.client.webSocketURL.port should be a non-empty string."
157157
`;
158158

159159
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
@@ -242,7 +242,7 @@ exports[`options validate should throw an error on the "historyApiFallback" opti
242242

243243
exports[`options validate should throw an error on the "host" option with '' value 1`] = `
244244
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
245-
- options.host should be an non-empty string.
245+
- options.host should be a non-empty string.
246246
-> Allows to specify a hostname to use. https://webpack.js.org/configuration/dev-server/#devserverhost"
247247
`;
248248

@@ -410,7 +410,7 @@ exports[`options validate should throw an error on the "onListening" option with
410410

411411
exports[`options validate should throw an error on the "open" option with '' value 1`] = `
412412
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
413-
- options.open should be an non-empty string."
413+
- options.open should be a non-empty string."
414414
`;
415415

416416
exports[`options validate should throw an error on the "open" option with '{"app":true}' value 1`] = `
@@ -451,7 +451,7 @@ exports[`options validate should throw an error on the "open" option with '{"tar
451451

452452
exports[`options validate should throw an error on the "port" option with '' value 1`] = `
453453
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
454-
- options.port should be an non-empty string."
454+
- options.port should be a non-empty string."
455455
`;
456456

457457
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
@@ -502,7 +502,7 @@ exports[`options validate should throw an error on the "proxy" option with 'func
502502

503503
exports[`options validate should throw an error on the "static" option with '' value 1`] = `
504504
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
505-
- options.static should be an non-empty string."
505+
- options.static should be a non-empty string."
506506
`;
507507

508508
exports[`options validate should throw an error on the "static" option with '{"directory":false}' value 1`] = `

test/__snapshots__/validate-options.test.js.snap.webpack5

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
exports[`options validate should throw an error on the "allowedHosts" option with '[""]' value 1`] = `
44
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
5-
- options.allowedHosts[0] should be an non-empty string."
5+
- options.allowedHosts[0] should be a non-empty string."
66
`;
77

88
exports[`options validate should throw an error on the "allowedHosts" option with '[]' value 1`] = `
99
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
10-
- options.allowedHosts should be an non-empty array."
10+
- options.allowedHosts should be a non-empty array."
1111
`;
1212

1313
exports[`options validate should throw an error on the "allowedHosts" option with '123' value 1`] = `
@@ -135,7 +135,7 @@ exports[`options validate should throw an error on the "client" option with '{"u
135135

136136
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"hostname":""}}' value 1`] = `
137137
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
138-
- options.client.webSocketURL.hostname should be an non-empty string.
138+
- options.client.webSocketURL.hostname should be a non-empty string.
139139
-> Tells clients connected to devServer to use the provided hostname."
140140
`;
141141

@@ -153,7 +153,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
153153

154154
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = `
155155
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
156-
- options.client.webSocketURL.port should be an non-empty string."
156+
- options.client.webSocketURL.port should be a non-empty string."
157157
`;
158158

159159
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
@@ -242,7 +242,7 @@ exports[`options validate should throw an error on the "historyApiFallback" opti
242242

243243
exports[`options validate should throw an error on the "host" option with '' value 1`] = `
244244
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
245-
- options.host should be an non-empty string.
245+
- options.host should be a non-empty string.
246246
-> Allows to specify a hostname to use. https://webpack.js.org/configuration/dev-server/#devserverhost"
247247
`;
248248

@@ -410,7 +410,7 @@ exports[`options validate should throw an error on the "onListening" option with
410410

411411
exports[`options validate should throw an error on the "open" option with '' value 1`] = `
412412
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
413-
- options.open should be an non-empty string."
413+
- options.open should be a non-empty string."
414414
`;
415415

416416
exports[`options validate should throw an error on the "open" option with '{"app":true}' value 1`] = `
@@ -451,7 +451,7 @@ exports[`options validate should throw an error on the "open" option with '{"tar
451451

452452
exports[`options validate should throw an error on the "port" option with '' value 1`] = `
453453
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
454-
- options.port should be an non-empty string."
454+
- options.port should be a non-empty string."
455455
`;
456456

457457
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
@@ -502,7 +502,7 @@ exports[`options validate should throw an error on the "proxy" option with 'func
502502

503503
exports[`options validate should throw an error on the "static" option with '' value 1`] = `
504504
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
505-
- options.static should be an non-empty string."
505+
- options.static should be a non-empty string."
506506
`;
507507

508508
exports[`options validate should throw an error on the "static" option with '{"directory":false}' value 1`] = `

0 commit comments

Comments
 (0)