mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Added assertion for style require'ing via alias within component file
This commit is contained in:
parent
1cef6abd46
commit
5a2e43ac6a
@ -180,6 +180,7 @@ describe('react-webpack generator', function() {
|
||||
helpers.assertFileContent([
|
||||
|
||||
[path.join('src/scripts', targetDirectory, name + '.js'), new RegExp('var ' + scriptNameFn(name) + suffix, 'g')],
|
||||
[path.join('src/scripts', targetDirectory, name + '.js'), new RegExp('require\\(\'styles\\/' + name + suffix + '\\.[^\']+' + '\'\\)', 'g')],
|
||||
[path.join('test/spec', targetDirectory, name + '.js'), new RegExp('describe\\(\'' + specNameFn(name) + suffix + '\'', 'g')]
|
||||
|
||||
]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user