diff --git a/test/test-creation.js b/test/test-creation.js index 126072a..684502e 100644 --- a/test/test-creation.js +++ b/test/test-creation.js @@ -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); + }); + }); + }); });