aboutsummaryrefslogtreecommitdiffstats
path: root/test/widget/inputSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/widget/inputSpec.js')
-rw-r--r--test/widget/inputSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/widget/inputSpec.js b/test/widget/inputSpec.js
index 6ab53ab0..8d409b25 100644
--- a/test/widget/inputSpec.js
+++ b/test/widget/inputSpec.js
@@ -460,12 +460,12 @@ describe('widget: input', function() {
describe('scope declaration', function() {
it('should read the declaration from scope', inject(function($rootScope, $compile) {
var input, $formFactory;
- element = angular.element('<input type="@MyType" ng:model="abc">');
+ var element = angular.element('<input type="@MyType" ng:model="abc">');
$rootScope.MyType = function($f, i) {
input = i;
$formFactory = $f;
};
- $rootScope.MyType.$inject = ['$formFactory'];
+ $rootScope.MyType.$inject = ['$formFactory', '$element'];
$compile(element)($rootScope);
@@ -475,7 +475,7 @@ describe('widget: input', function() {
it('should throw an error of Controller not declared in scope', inject(function($rootScope, $compile) {
var input, $formFactory;
- element = angular.element('<input type="@DontExist" ng:model="abc">');
+ var element = angular.element('<input type="@DontExist" ng:model="abc">');
var error;
try {
$compile(element)($rootScope);