From a8227086748e37c31c1bb71dec50c96d63c45eef Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 22 Mar 2010 20:20:05 -0700 Subject: rudementary event bind and trigger for jqlite --- test/directivesSpec.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 447698a3..7e0446ef 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -12,6 +12,11 @@ describe("directives", function(){ }; }); + afterEach(function(){ + element.remove(); + expect(_(jqCache).size()).toEqual(0); + }); + it("should ng-init", function() { var scope = compile('
'); expect(scope.get('a')).toEqual(123); @@ -100,7 +105,7 @@ describe("directives", function(){ scope.updateView(); expect(scope.get('clicked')).toBeFalsy(); - jQuery(element.element).click(); + element.click(); expect(scope.get('clicked')).toEqual(true); }); }); -- cgit v1.2.3