Skip to content

Commit

Permalink
Update safe_value.test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 9, 2024
1 parent 6251bda commit bfadd17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quickdraw/sgml/safe_value.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def view_template
end

class ExampleScript < Phlex::HTML
def view_template
script { safe(%(console.log("Hello World");)) }
end
def view_template
script { safe(%(console.log("Hello World");)) }
end
end

test "element content blocks that return safe values" do
expect(ExampleScript.call) == %(<script>console.log("Hello World");</script>)
expect(ExampleScript.call) == %(<script>console.log("Hello World");</script>)
end

0 comments on commit bfadd17

Please sign in to comment.