aboutsummaryrefslogtreecommitdiffstats
path: root/test/servicesSpec.js
diff options
context:
space:
mode:
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();