Added automatic generation of components displayName property.

This commit is contained in:
Chris
2015-10-15 16:09:23 +02:00
parent 82a080f586
commit 685f6a75ce
5 changed files with 21 additions and 0 deletions
+8
View File
@@ -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', () => {