@@ -42,37 +42,37 @@ exports[`validation should throw an error on the "headers" option with "true" va
42
42
exports[`validation should throw an error on the "index" option with "{}" value 1`] = `
43
43
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
44
44
- options.index should be one of these:
45
- boolean | string
45
+ boolean | non-empty string
46
46
-> Allows to serve an index of the directory.
47
47
-> Read more at https://github.com/webpack/webpack-dev-middleware#index
48
48
Details:
49
49
* options.index should be a boolean.
50
- * options.index should be a string."
50
+ * options.index should be a non-empty string."
51
51
`;
52
52
53
53
exports[`validation should throw an error on the "index" option with "0" value 1`] = `
54
54
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
55
55
- options.index should be one of these:
56
- boolean | string
56
+ boolean | non-empty string
57
57
-> Allows to serve an index of the directory.
58
58
-> Read more at https://github.com/webpack/webpack-dev-middleware#index
59
59
Details:
60
60
* options.index should be a boolean.
61
- * options.index should be a string."
61
+ * options.index should be a non-empty string."
62
62
`;
63
63
64
64
exports[`validation should throw an error on the "methods" option with "{}" value 1`] = `
65
65
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
66
66
- options.methods should be an array:
67
- [string, ...]
67
+ [non-empty string, ...]
68
68
-> Allows to pass the list of HTTP request methods accepted by the middleware.
69
69
-> Read more at https://github.com/webpack/webpack-dev-middleware#methods"
70
70
`;
71
71
72
72
exports[`validation should throw an error on the "methods" option with "true" value 1`] = `
73
73
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
74
74
- options.methods should be an array:
75
- [string, ...]
75
+ [non-empty string, ...]
76
76
-> Allows to pass the list of HTTP request methods accepted by the middleware.
77
77
-> Read more at https://github.com/webpack/webpack-dev-middleware#methods"
78
78
`;
0 commit comments