From 6b443cca488fd0a4dc0d46afc370afdee9407503 Mon Sep 17 00:00:00 2001 From: ColCh Date: Fri, 20 Feb 2015 16:23:33 +0300 Subject: [PATCH] Added test case for subcomponent --- test/test-creation.js | 7 +++++++ 1 file changed, 7 insertions(+) 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); + }); + }); + }); });