From 1777110958f76ee4be5760e36c96702223385918 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 15 Feb 2011 01:12:45 -0500 Subject: split up services into individual files - split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock" --- test/service/documentSpec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/service/documentSpec.js (limited to 'test/service/documentSpec.js') 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)); + }); +}); -- cgit v1.2.3