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.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/service/documentSpec.js b/test/service/documentSpec.js
new file mode 100644
index 00000000..bd92023d
--- /dev/null
+++ b/test/service/documentSpec.js
@@ -0,0 +1,17 @@
+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));
+ });
+});