diff --git a/src/html-sanitizer.ts b/src/html-sanitizer.ts index b8787c6..88c4f1a 100644 --- a/src/html-sanitizer.ts +++ b/src/html-sanitizer.ts @@ -1,8 +1,3 @@ -import { getLogger } from 'aurelia-logging'; - -const SCRIPT_REGEX = /', - b = '
', - c = 'foo bar', - d = '', - e = 'foo bar'; - - expect(converter.toView('')).toBe(''); - expect(converter.toView(null)).toBe(null); - expect(converter.toView(undefined)).toBe(null); - expect(converter.toView(a)).toBe(''); - expect(converter.toView(b)).toBe(''); - expect(converter.toView(c)).toBe('foo bar'); - expect(converter.toView(d)).toBe(''); - expect(converter.toView(e)).toBe('foo bar'); + it('defaultSanitizer should throw', () => { + expect(() => converter.toView('')).toThrow(); }); it('custom sanitizers can be used', () => {