Skip to content

Commit d633daa

Browse files
committed
Fix tests
1 parent c4ba655 commit d633daa

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

test/Validation.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ describe("Validation", function() {
2020
message: [
2121
" - configuration.public should be a string."
2222
]
23+
}, {
24+
name: "invalid `contentBase` configuration",
25+
config: { contentBase: [0] },
26+
message: [
27+
" - configuration.contentBase[0] should be a string.",
28+
" - configuration.contentBase should be one of these:",
29+
" [string] | boolean | number | string",
30+
" A directory to serve files non-webpack files from."
31+
]
2332
}, {
2433
name: "non-existing key configuration",
2534
config: { asdf: true },

test/fixtures/historyapifallback-3-config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
loaders: [
1010
{
1111
test: /\.html$/,
12-
loader: "file",
12+
loader: "file-loader",
1313
query: { name: "index.html" }
1414
}
1515
]

test/fixtures/historyapifallback-config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
loaders: [
1010
{
1111
test: /\.html$/,
12-
loader: "file",
12+
loader: "file-loader",
1313
query: { name: "[name].[ext]" }
1414
}
1515
]

0 commit comments

Comments
 (0)