aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/documentSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/service/documentSpec.js')
-rw-r--r--test/service/documentSpec.js16
1 files changed, 3 insertions, 13 deletions
diff --git a/test/service/documentSpec.js b/test/service/documentSpec.js
index 885331e4..064904a2 100644
--- a/test/service/documentSpec.js
+++ b/test/service/documentSpec.js
@@ -1,19 +1,9 @@
'use strict';
describe('$document', function() {
- var scope;
- beforeEach(function() {
- scope = angular.scope();
- });
-
- afterEach(function() {
- dealoc(scope);
- });
-
-
- it("should inject $document", function() {
- expect(scope.$service('$document')).toEqual(jqLite(document));
- });
+ it("should inject $document", inject(function($document) {
+ expect($document).toEqual(jqLite(document));
+ }));
});