diff options
Diffstat (limited to 'test/sanitizerSpec.js')
| -rw-r--r-- | test/sanitizerSpec.js | 10 | 
1 files changed, 7 insertions, 3 deletions
| 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; | 
