Added another utility #getDestinationClassName to get the final classname of a given path

This commit is contained in:
Chris
2015-09-29 14:11:28 +02:00
parent 47f1273828
commit 361ea7409d
2 changed files with 23 additions and 1 deletions
+8
View File
@@ -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');
});
});
});