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