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 28674c4 commit 8883531
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/graphql/types/member_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@
expect(repository1.fetch("software")).to eq(["dataverse"])

expect(response.dig("data", "member", "prefixes", "totalCount")).to eq(4)
# Remember when writing tests that the creation of a client will assign a prefix to that provider/client.
# Then when we assign 3 more prefixes ot the provider, the count will be 4 total.
expect(response.dig("data", "member", "prefixes", "years")).to eq(
[{ "count" => 3, "id" => current_year }],
[{ "count" => 4, "id" => current_year }],
)
expect(response.dig("data", "member", "prefixes", "nodes").length).to eq(
4,
Expand Down

0 comments on commit 8883531

Please sign in to comment.