aboutsummaryrefslogtreecommitdiffstats
path: root/test/servicesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-03 17:04:36 -0700
committerMisko Hevery2010-04-03 17:04:36 -0700
commita80a61839a66d244c8bb14bbe2975746e02516c8 (patch)
tree5a7b4d9d3e2a7a15ebf55e068782fbf2aa4ac6bf /test/servicesSpec.js
parent35ca4fcb9c49e505e28669e951e01ddedb01d7db (diff)
downloadangular.js-a80a61839a66d244c8bb14bbe2975746e02516c8.tar.bz2
injection is now working
Diffstat (limited to 'test/servicesSpec.js')
-rw-r--r--test/servicesSpec.js17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/servicesSpec.js b/test/servicesSpec.js
index b92975d0..49000af4 100644
--- a/test/servicesSpec.js
+++ b/test/servicesSpec.js
@@ -2,11 +2,7 @@ describe("services", function(){
var scope;
beforeEach(function(){
- scope = createScope({
- $config: {
- 'location': {'get':noop, 'set':noop, 'watch':noop}
- }
- }, serviceAdapter(angularService));
+ scope = createScope(null, angularService, {});
});
it("should inject $window", function(){
@@ -46,4 +42,15 @@ describe("services", function(){
expect(scope.$location()).toEqual('file:///Users/Shared/misko/work/angular.js/scenario/widgets.html');
});
+ xit('should add stylesheets', function(){
+ scope.$document = {
+ getElementsByTagName: function(name){
+ expect(name).toEqual('LINK');
+ return [];
+ }
+ };
+ scope.$document.addStyleSheet('css/angular.css');
+
+ });
+
});