diff --git a/test/__snapshots__/validate-options.test.js.snap b/test/__snapshots__/validate-options.test.js.snap index 9bf6914b..0b3775df 100644 --- a/test/__snapshots__/validate-options.test.js.snap +++ b/test/__snapshots__/validate-options.test.js.snap @@ -7,10 +7,10 @@ exports[`validate options should throw an error on the "esModule" option with "t -> Read more at https://github.com/webpack-contrib/css-loader#esmodule" `; -exports[`validate options should throw an error on the "exportStylesheet" option with "true" value 1`] = ` +exports[`validate options should throw an error on the "exportStyleSheet" option with "true" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - - options.exportStylesheet should be a boolean. - -> Exports style as constructable stylesheets (i.e. \`import sheet from './styles.css' assert { type: 'css' };\`). + - options.exportStyleSheet should be a boolean. + -> Exports styles as constructable stylesheets (i.e. \`import sheet from './styles.css' assert { type: 'css' };\`). -> Read more at https://github.com/webpack-contrib/css-loader#exportstylesheet" `; @@ -306,49 +306,49 @@ exports[`validate options should throw an error on the "sourceMap" option with " exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "unknown" option with "[]" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "unknown" option with "{"foo":"bar"}" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "unknown" option with "{}" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "unknown" option with "1" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "unknown" option with "false" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "unknown" option with "test" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "unknown" option with "true" value 1`] = ` "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'unknown'. These properties are valid: - object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStylesheet? }" + object { url?, import?, modules?, sourceMap?, importLoaders?, esModule?, exportStyleSheet? }" `; exports[`validate options should throw an error on the "url" option with "() => {}" value 1`] = `