mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-29 11:19:16 +08:00
Added assertion for style require'ing via alias within component file
This commit is contained in:
@@ -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')]
|
||||
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user