mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
Added another utility #getDestinationClassName to get the final classname of a given path
This commit is contained in:
@@ -109,4 +109,12 @@ describe('Utilities:Yeoman', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('#getDestinationClassName', () => {
|
||||
|
||||
it('should return the correct javascript class name for the given paths', () => {
|
||||
expect(utils.getDestinationClassName('test', 'action', 'Actions')).to.equal('TestActions');
|
||||
expect(utils.getDestinationClassName('test', 'source', 'Source')).to.equal('TestSource');
|
||||
expect(utils.getDestinationClassName('test', 'store', 'Store')).to.equal('TestStore');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user