Skip to content

Commit

Permalink
Add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoahero committed Oct 27, 2023
1 parent 13894f0 commit 6dc3667
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/lib/graphql/schema_comparator/diff/directive_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,15 @@ def test_diff
"Default value for argument `a` on directive `Default` changed from `No` to `Yes`",
"Type for argument `a` on directive `Default` changed from `Int!` to `String!`"
], differ.diff.map(&:message)

assert_equal [
"@Default",
"@Default",
"@Default.c",
"@Default.b",
"@Default.a",
"@Default.a",
"@Default.a"
], differ.diff.map(&:path)
end
end

0 comments on commit 6dc3667

Please sign in to comment.