'use strict';

describe('Filter: sanitize', () => {
    var filter;

    beforeEach(angular.mock.module('awApp'));

    beforeEach(function(){
      inject(function($injector){
        filter = $injector.get('$filter')('sanitize');
      });
    });

    it('should sanitize xss-vulnerable strings', function(){
      expect(filter("<div>foobar</div>")).toBe("&lt;div&gt;foobar&lt;/div&gt;");
    });
});

@@ -357,37 +357,25 @@
 Be(%22
-&lt;div&gt;foobar&lt;/div&gt;
+%3Cdiv%3Efoobar%3C/div%3E
 %22);%0A

Update sanitize filter test