From 41a5c408c242269bf31bc0b774c7304fdf7c2f1c Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 8 Apr 2010 15:05:05 -0700 Subject: tests pass jstd has issues --- test/servicesSpec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/servicesSpec.js') diff --git a/test/servicesSpec.js b/test/servicesSpec.js index a3841c2f..b7dfe4c8 100644 --- a/test/servicesSpec.js +++ b/test/servicesSpec.js @@ -66,9 +66,7 @@ describe("service $invalidWidgets", function(){ }); it("should count number of invalid widgets", function(){ - var doc = jqLite(window.document.body); - doc.append(''); - var scope = compile(doc).$init(); + var scope = compile('').$init(); expect(scope.$invalidWidgets.length).toEqual(1); scope.price = 123; scope.$eval(); -- cgit v1.2.3