1 parent 4e3ef7a commit 9598f64Copy full SHA for 9598f64
1 file changed
test/Validation.test.js
@@ -130,6 +130,20 @@ describe("Validation", function() {
130
" })",
131
" ]"
132
]
133
+ }, {
134
+ name: "enum",
135
+ config: {
136
+ entry: "a",
137
+ devtool: true
138
+ },
139
+ message: [
140
+ " - configuration.devtool should be one of these:",
141
+ " string | false",
142
+ " A developer tool to enhance debugging.",
143
+ " Details:",
144
+ " * configuration.devtool should be a string.",
145
+ " * configuration.devtool should be false"
146
+ ]
147
}];
148
testCases.forEach(function(testCase) {
149
it("should fail validation for " + testCase.name, function() {
0 commit comments