Skip to content

Commit ff7f35a

Browse files
test: fix
1 parent 730c011 commit ff7f35a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
533533
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"ca":true}}' value 1`] = `
534534
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
535535
- options.server should be one of these:
536-
"http" | "https" | "spdy" | non-empty string | object { type?, options? }
536+
"http" | "https" | "spdy" | "http2" | non-empty string | object { type?, options? }
537537
-> Allows to set server and options (by default 'http').
538538
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
539539
Details:
@@ -550,7 +550,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
550550
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"cert":true}}' value 1`] = `
551551
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
552552
- options.server should be one of these:
553-
"http" | "https" | "spdy" | non-empty string | object { type?, options? }
553+
"http" | "https" | "spdy" | "http2" | non-empty string | object { type?, options? }
554554
-> Allows to set server and options (by default 'http').
555555
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
556556
Details:
@@ -567,7 +567,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
567567
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"key":10}}' value 1`] = `
568568
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
569569
- options.server should be one of these:
570-
"http" | "https" | "spdy" | non-empty string | object { type?, options? }
570+
"http" | "https" | "spdy" | "http2" | non-empty string | object { type?, options? }
571571
-> Allows to set server and options (by default 'http').
572572
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
573573
Details:
@@ -590,7 +590,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
590590
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"pfx":10}}' value 1`] = `
591591
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
592592
- options.server should be one of these:
593-
"http" | "https" | "spdy" | non-empty string | object { type?, options? }
593+
"http" | "https" | "spdy" | "http2" | non-empty string | object { type?, options? }
594594
-> Allows to set server and options (by default 'http').
595595
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
596596
Details:

0 commit comments

Comments
 (0)