From 9ee2cdff44e7d496774b340de816344126c457b3 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 22 Nov 2011 21:28:39 -0800 Subject: refactor(directives): connect new compiler - turn everything into a directive --- test/sanitizerSpec.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'test/sanitizerSpec.js') diff --git a/test/sanitizerSpec.js b/test/sanitizerSpec.js index 7467a833..a33d8992 100644 --- a/test/sanitizerSpec.js +++ b/test/sanitizerSpec.js @@ -2,9 +2,13 @@ describe('HTML', function() { - function expectHTML(html) { - return expect(new HTML(html).get()); - } + var expectHTML; + + beforeEach(inject(function($sanitize) { + expectHTML = function(html){ + return expect($sanitize(html)); + }; + })); describe('htmlParser', function() { var handler, start, text; -- cgit v1.2.3