Skip to content

Commit

Permalink
Fix deprecation warnings in tests
Browse files Browse the repository at this point in the history
Summary:

Test Plan:
  • Loading branch information
michalmuskala committed Jun 29, 2024
1 parent 0d8a04f commit 63d82ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/formatter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ defmodule Jason.FormatterTest do
]

for name <- @test_cases do
input = File.open!("formatter_test_suite/#{name}.json") |> IO.binread(:all)
pretty = File.open!("formatter_test_suite/#{name}.pretty.json") |> IO.binread(:all)
min = File.open!("formatter_test_suite/#{name}.min.json") |> IO.binread(:all)
input = File.read!("formatter_test_suite/#{name}.json")
pretty = File.read!("formatter_test_suite/#{name}.pretty.json")
min = File.read!("formatter_test_suite/#{name}.min.json")

test "#{name} |> pretty_print" do
assert(pretty_print(unquote(input)) == unquote(pretty))
Expand Down

0 comments on commit 63d82ec

Please sign in to comment.