1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 # Tests XSS vulnerability monkeypatch
8 # See: https://github.com/advisories/GHSA-65cv-r6x7-79hv
9 class JavascriptHelperTest < ActionView::TestCase
10 def test_escape_backtick
11 assert_equal "\\`", escape_javascript("`")
14 def test_escape_dollar_sign
15 assert_equal "\\$", escape_javascript("$")