Skip to content

Commit

Permalink
Update organization spec with true number of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed May 1, 2023
1 parent 517d3ab commit 010c5d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/graphql/types/organization_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,9 @@
expect(
response.dig("data", "organization", "works", "resourceTypes"),
).to eq([{ "count" => 3, "title" => "Dataset" }])
# TODO should be 3 nodes
expect(
response.dig("data", "organization", "works", "nodes").length,
).to eq(2)
).to eq(3)

work = response.dig("data", "organization", "works", "nodes", 0)
expect(work.dig("titles", 0, "title")).to eq(
Expand Down

0 comments on commit 010c5d5

Please sign in to comment.