Skip to content

Commit 088428d

Browse files
committed
fix(subgenerators): name correctly the factories
1 parent df4ee94 commit 088428d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
angular.module('<%= preffix %>.<%= moduleName %>')
4-
.factory('<%= name %>', function() {
4+
.factory('<%= capitalizedName %>', function() {
55
return {};
66
});
77

templates/factorySpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ describe('Factory: <%= name %>', function() {
55

66
beforeEach(module('<%= preffix %>.<%= moduleName %>'));
77

8-
beforeEach(inject(function(_<%= name %>_) {
9-
<%= name %> = _<%= name %>_;
8+
beforeEach(inject(function(_<%= capitalizedName %>_) {
9+
<%= name %> = _<%= capitalizedName %>_;
1010
}));
1111

1212
it('should do something', function() {

0 commit comments

Comments
 (0)