aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/windowSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/service/windowSpec.js')
-rw-r--r--test/service/windowSpec.js18
1 files changed, 3 insertions, 15 deletions
diff --git a/test/service/windowSpec.js b/test/service/windowSpec.js
index c539e285..3b847146 100644
--- a/test/service/windowSpec.js
+++ b/test/service/windowSpec.js
@@ -1,19 +1,7 @@
'use strict';
describe('$window', function() {
- var scope;
-
- beforeEach(function() {
- scope = angular.scope();
- });
-
-
- afterEach(function() {
- dealoc(scope);
- });
-
-
- it("should inject $window", function() {
- expect(scope.$service('$window')).toBe(window);
- });
+ it("should inject $window", inject(function($window) {
+ expect($window).toBe(window);
+ }));
});