mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-29 13:11:10 +08:00
Added automatic generation of components displayName property.
This commit is contained in:
1 parent
82a080f586
commit
685f6a75ce
5 files changed
+21
No files matched your search
@@ -47,6 +47,14 @@ describe('react-webpack:component', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should have its displayName set per default', (done) => {
|
||||
|
||||
createGeneratedComponent('mycomponent', 'css', () => {
|
||||
assert.fileContent('src/components/MycomponentComponent.js', `displayName = 'MycomponentComponent';`);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Style', () => {
|
||||
|
||||
Reference in new issue
Block a user