Skip to content

Commit

Permalink
fix: remove annotation compares
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Jul 21, 2024
1 parent 1996307 commit a94906a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/genericode/code_list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@

it "converts XML to JSON correctly" do
code_list = described_class.from_xml(xml_content)
generated_json = JSON.parse(code_list.to_json)
expected_json = JSON.parse(json_content)
generated_json = JSON.parse(code_list.to_json(except: [:annotation]))
expected_json = JSON.parse(json_content).tap { |n| n.delete("Annotation") }

expect(generated_json).to eq(expected_json)
end
Expand Down

0 comments on commit a94906a

Please sign in to comment.