Skip to content

Commit

Permalink
Remove redundant string escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Oct 26, 2022
1 parent 0dd3ce0 commit 02efa0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/phlex/compiler/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
formatter.append { _1.text "b" }
formatter.append { _1.text "c" }

expect(output).to be == %(@_target << \"abc")
expect(output).to be == %(@_target << "abc")
end

it "allows for breaks" do
Expand Down
2 changes: 1 addition & 1 deletion test/phlex/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

it "renders the correct output" do
expect(output).to be ==
%(<p>Before</p>\n\n<h1>Hello World!</h1>\n\n<article class=\"drop-shadow p-5 rounded\">\n <p>Start Card A</p>\n <h3 class=\"font-bold\">Hello from A</h3>\n <article class=\"drop-shadow p-5 rounded\">\n <p>Start Card B</p>\n <h3 class=\"font-bold\">Hello from B</h3>\n <p>End Card B</p>\n</article> <p>End Card A</p>\n</article>)
%(<p>Before</p>\n\n<h1>Hello World!</h1>\n\n<article class="drop-shadow p-5 rounded">\n <p>Start Card A</p>\n <h3 class="font-bold">Hello from A</h3>\n <article class="drop-shadow p-5 rounded">\n <p>Start Card B</p>\n <h3 class="font-bold">Hello from B</h3>\n <p>End Card B</p>\n</article> <p>End Card A</p>\n</article>)
end
end
end

0 comments on commit 02efa0d

Please sign in to comment.