Skip to content

Commit b620c9d

Browse files
committed
fix(route): correct controller name in controller unit test
1 parent 2a102a8 commit b620c9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

route/templates/spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
'use strict';
22

3-
describe('Controller: <%= _.capitalize(_.camelize(name)) %>Ctrl', function () {
3+
describe('Controller: <%= controllerName %>', function () {
44

55
beforeEach(module('<%= _.camelize(appname) %>'));
66

7-
var MainCtrl,
7+
var <%= controllerName %>,
88
scope;
99

1010
beforeEach(inject(function ($controller, $rootScope) {
1111
scope = $rootScope.$new();
12-
MainCtrl = $controller('<%= controllerName %>', {
12+
<%= controllerName %> = $controller('<%= controllerName %>', {
1313
$scope: scope
1414
});
1515
}));

0 commit comments

Comments
 (0)