Added assertion for style require'ing via alias within component file

This commit is contained in:
ColCh 2015-02-20 16:55:17 +03:00
parent 1cef6abd46
commit 5a2e43ac6a

View File

@ -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')]
]);