Skip to content

Commit

Permalink
Added test for nonce: false
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 3, 2022
1 parent fe74fd1 commit ff90b4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/helper_test.rb
Expand Up @@ -29,6 +29,12 @@ def test_nonce_not_configured
refute_match "nonce", vega_chart(Vega.lite.spec)
end

def test_nonce_false
with_nonce do
refute_match "nonce", vega_chart(Vega.lite, nonce: false)
end
end

def test_bad_type
error = assert_raises(TypeError) do
vega_chart Object.new
Expand Down

0 comments on commit ff90b4b

Please sign in to comment.