@@ -120,3 +120,57 @@ exports[`validate options should throw an error on the "sourceMap" option with "
120120 - options.sourceMap should be a boolean.
121121 -> Enables/Disables generation of source maps (https://github.com/webpack-contrib/less-loader#sourcemap)."
122122` ;
123+
124+ exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
125+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
126+ - options has an unknown property 'unknown'. These properties are valid:
127+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
128+ `;
129+
130+ exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
131+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
132+ - options has an unknown property 'unknown'. These properties are valid:
133+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
134+ `;
135+
136+ exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
137+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
138+ - options has an unknown property 'unknown'. These properties are valid:
139+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
140+ `;
141+
142+ exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
143+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
144+ - options has an unknown property 'unknown'. These properties are valid:
145+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
146+ `;
147+
148+ exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
149+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
150+ - options has an unknown property 'unknown'. These properties are valid:
151+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
152+ `;
153+
154+ exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
155+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
156+ - options has an unknown property 'unknown'. These properties are valid:
157+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
158+ `;
159+
160+ exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
161+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
162+ - options has an unknown property 'unknown'. These properties are valid:
163+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
164+ `;
165+
166+ exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
167+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
168+ - options has an unknown property 'unknown'. These properties are valid:
169+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? }"
170+ `;
171+
172+ exports [` validate options should throw an error on the "webpackImporter" option with "string" value 1` ] = `
173+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
174+ - options.webpackImporter should be a boolean.
175+ -> Enables/Disables default \` webpack\` importer (https://github.com/webpack-contrib/less-loader#webpackimporter)."
176+ ` ;
0 commit comments