mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-28 13:00:47 +08:00
Added test case for subcomponent
This commit is contained in:
1 parent
554d2dd56b
commit
6b443cca48
1 file changed
+7
@@ -182,6 +182,13 @@ describe('react-webpack generator', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it('should generate a subcomponent', function(done) {
|
||||
react.run({}, function() {
|
||||
var subComponentNameFn = function () { return 'Bar'; };
|
||||
generatorTest('Foo/Bar', 'component', 'component', 'components', subComponentNameFn, subComponentNameFn, '', done);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user