Skip to content

Commit 78b8a89

Browse files
committed
test: update snapshots
1 parent 2fe1a3c commit 78b8a89

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,23 @@ exports[`options validate should throw an error on the "client" option with '{"w
109109
-> Tells clients connected to devServer to use the provided path to connect."
110110
`;
111111

112+
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = `
113+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114+
- configuration.client.webSocketURL.port should be an non-empty string."
115+
`;
116+
112117
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
113118
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114119
- configuration.client.webSocketURL should be one of these:
115120
non-empty string | object { host?, port?, path? }
116121
-> When using dev server and you're proxying dev-server, the client script does not always know where to connect to.
117122
Details:
118123
* configuration.client.webSocketURL.port should be one of these:
119-
number | string
124+
number | non-empty string
120125
-> Tells clients connected to devServer to use the provided port.
121126
Details:
122127
* configuration.client.webSocketURL.port should be a number.
123-
* configuration.client.webSocketURL.port should be a string."
128+
* configuration.client.webSocketURL.port should be a non-empty string."
124129
`;
125130

126131
exports[`options validate should throw an error on the "client" option with 'whoops!' value 1`] = `

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,23 @@ exports[`options validate should throw an error on the "client" option with '{"w
109109
-> Tells clients connected to devServer to use the provided path to connect."
110110
`;
111111

112+
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = `
113+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114+
- configuration.client.webSocketURL.port should be an non-empty string."
115+
`;
116+
112117
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
113118
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114119
- configuration.client.webSocketURL should be one of these:
115120
non-empty string | object { host?, port?, path? }
116121
-> When using dev server and you're proxying dev-server, the client script does not always know where to connect to.
117122
Details:
118123
* configuration.client.webSocketURL.port should be one of these:
119-
number | string
124+
number | non-empty string
120125
-> Tells clients connected to devServer to use the provided port.
121126
Details:
122127
* configuration.client.webSocketURL.port should be a number.
123-
* configuration.client.webSocketURL.port should be a string."
128+
* configuration.client.webSocketURL.port should be a non-empty string."
124129
`;
125130

126131
exports[`options validate should throw an error on the "client" option with 'whoops!' value 1`] = `

0 commit comments

Comments
 (0)