aboutsummaryrefslogtreecommitdiffstats
path: root/test/servicesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-08 15:05:05 -0700
committerMisko Hevery2010-04-08 15:05:05 -0700
commit41a5c408c242269bf31bc0b774c7304fdf7c2f1c (patch)
treeaa48e2eff595691b4f4ee07d0307fcd95ebd0956 /test/servicesSpec.js
parentc4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd (diff)
downloadangular.js-41a5c408c242269bf31bc0b774c7304fdf7c2f1c.tar.bz2
tests pass jstd has issues
Diffstat (limited to 'test/servicesSpec.js')
-rw-r--r--test/servicesSpec.js4
1 files changed, 1 insertions, 3 deletions
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('<input name="price" ng-required></input>');
- var scope = compile(doc).$init();
+ var scope = compile('<input name="price" ng-required></input>').$init();
expect(scope.$invalidWidgets.length).toEqual(1);
scope.price = 123;
scope.$eval();