aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/jqLiteSpec.js')
-rw-r--r--test/jqLiteSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js
index 2f9a5fb9..5c54e786 100644
--- a/test/jqLiteSpec.js
+++ b/test/jqLiteSpec.js
@@ -10,8 +10,8 @@ describe('jqLite', function() {
});
- beforeEach(function() {
- scope = angular.scope();
+ beforeEach(inject(function($rootScope) {
+ scope = $rootScope;
this.addMatchers({
toJqEqual: function(expected) {
var msg = "Unequal length";
@@ -29,7 +29,7 @@ describe('jqLite', function() {
return value;
}
});
- });
+ }));
afterEach(function() {