Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCho committed Jan 16, 2020
1 parent 17f9ca0 commit f8e3f69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/specs/helpers/isValidXss.spec.js
Expand Up @@ -14,6 +14,9 @@ describe('helpers::isValidXss', function () {
});

it('should not detect non script tags', function() {
expect(isValidXss("javascript.com")).toBe(false);
expect(isValidXss("abc.com/javascript/path")).toBe(false);
expect(isValidXss("abc.com?tag=javascript")).toBe(false);
expect(isValidXss("only=true")).toBe(false);
expect(isValidXss("/one/?foo=bar")).toBe(false);
expect(isValidXss("<safe> tags")).toBe(false);
Expand Down

0 comments on commit f8e3f69

Please sign in to comment.