Skip to content

Commit f401a35

Browse files
authored
Merge branch 'wcoments' into master
2 parents df8d94d + 6d26642 commit f401a35

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+12
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ exports[`validation should throw an error on the "headers" option with "true" va
3939
* options.headers should be an instance of function."
4040
`;
4141

42+
exports[`validation should throw an error on the "historyApiFallback" option with "10" value 1`] = `
43+
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
44+
- options.historyApiFallback should be a boolean.
45+
-> When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses. Enable historyApiFallback by setting it to true"
46+
`;
47+
48+
exports[`validation should throw an error on the "historyApiFallback" option with "foo" value 1`] = `
49+
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
50+
- options.historyApiFallback should be a boolean.
51+
-> When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses. Enable historyApiFallback by setting it to true"
52+
`;
53+
4254
exports[`validation should throw an error on the "index" option with "{}" value 1`] = `
4355
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
4456
- options.index should be one of these:

0 commit comments

Comments
 (0)