aboutsummaryrefslogtreecommitdiffstats
path: root/test/widget/inputSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-02 16:32:46 -0700
committerMisko Hevery2011-11-14 16:39:33 -0800
commitbd04316a89a0909e7a4e483839d573ce857f7622 (patch)
tree0378c33976ba524b7090a3665cd7729638f1545e /test/widget/inputSpec.js
parented36b9da3be338fe9eb36f3eeea901d6f51cd768 (diff)
downloadangular.js-bd04316a89a0909e7a4e483839d573ce857f7622.tar.bz2
refactor(services): migrate angular.service -> module
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 8d409b25..cd70cea4 100644
--- a/test/widget/inputSpec.js
+++ b/test/widget/inputSpec.js
@@ -448,12 +448,12 @@ describe('widget: input', function() {
});
- it('should report error on assignment error', function() {
+ it('should report error on assignment error', inject(function($log) {
expect(function() {
compile('<input type="text" ng:model="throw \'\'">');
}).toThrow("Syntax Error: Token '''' is an unexpected token at column 7 of the expression [throw ''] starting at [''].");
- $logMock.error.logs.shift();
- });
+ $log.error.logs.shift();
+ }));
});