mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Slight refactor test helper to access name
This commit is contained in:
parent
6fd793fad0
commit
708fcea34f
@ -156,9 +156,8 @@ describe('react-webpack generator', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('Subgenerators', function() {
|
describe('Subgenerators', function() {
|
||||||
var generatorTest = function(generatorType, specType, targetDirectory, scriptNameFn, specNameFn, suffix, done) {
|
var generatorTest = function(name, generatorType, specType, targetDirectory, scriptNameFn, specNameFn, suffix, done) {
|
||||||
|
|
||||||
var name = 'Foo';
|
|
||||||
var deps = [path.join('../..', generatorType)];
|
var deps = [path.join('../..', generatorType)];
|
||||||
genOptions.appPath += '/scripts'
|
genOptions.appPath += '/scripts'
|
||||||
|
|
||||||
@ -179,7 +178,7 @@ describe('react-webpack generator', function() {
|
|||||||
|
|
||||||
it('should generate a new component', function(done) {
|
it('should generate a new component', function(done) {
|
||||||
react.run({}, function() {
|
react.run({}, function() {
|
||||||
generatorTest('component', 'component', 'components', _.capitalize, _.capitalize, '', done);
|
generatorTest('Foo', 'component', 'component', 'components', _.capitalize, _.capitalize, '', done);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user