Skip to content

Commit

Permalink
Prefix bug: fix a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Jan 20, 2023
1 parent 8883531 commit e587d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/graphql/types/repository_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,10 @@
expect(
response.dig("data", "repository", "prefixes", "totalCount"),
).to eq(1)
# Remember when writing tests that the creation of a client will assign a prefix to that provider/client.
# There is only 1 prefix in this test.
expect(response.dig("data", "repository", "prefixes", "years")).to eq(
[{ "count" => 3, "id" => @current_year }],
[{ "count" => 1, "id" => @current_year }],
)
expect(
response.dig("data", "repository", "prefixes", "nodes").length,
Expand Down

0 comments on commit e587d89

Please sign in to comment.