@@ -42,37 +42,37 @@ exports[`validation should throw an error on the "headers" option with "true" va
4242exports[`validation should throw an error on the "index" option with "{}" value 1`] = `
4343"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
4444 - options.index should be one of these:
45- boolean | string
45+ boolean | non-empty string
4646 -> Allows to serve an index of the directory.
4747 -> Read more at https://github.com/webpack/webpack-dev-middleware#index
4848 Details:
4949 * options.index should be a boolean.
50- * options.index should be a string."
50+ * options.index should be a non-empty string."
5151`;
5252
5353exports[`validation should throw an error on the "index" option with "0" value 1`] = `
5454"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
5555 - options.index should be one of these:
56- boolean | string
56+ boolean | non-empty string
5757 -> Allows to serve an index of the directory.
5858 -> Read more at https://github.com/webpack/webpack-dev-middleware#index
5959 Details:
6060 * options.index should be a boolean.
61- * options.index should be a string."
61+ * options.index should be a non-empty string."
6262`;
6363
6464exports[`validation should throw an error on the "methods" option with "{}" value 1`] = `
6565"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
6666 - options.methods should be an array:
67- [string, ...]
67+ [non-empty string, ...]
6868 -> Allows to pass the list of HTTP request methods accepted by the middleware.
6969 -> Read more at https://github.com/webpack/webpack-dev-middleware#methods"
7070`;
7171
7272exports[`validation should throw an error on the "methods" option with "true" value 1`] = `
7373"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
7474 - options.methods should be an array:
75- [string, ...]
75+ [non-empty string, ...]
7676 -> Allows to pass the list of HTTP request methods accepted by the middleware.
7777 -> Read more at https://github.com/webpack/webpack-dev-middleware#methods"
7878`;
0 commit comments