Skip to content

Commit

Permalink
Add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed Sep 28, 2023
1 parent 1b92348 commit 129114d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions spec/graphql/types/person_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -599,4 +599,39 @@
# )
# end
# end

describe "query people with absolute orcid ur", elasticsearch: true, vcr: true do
let(:query) do
"query {
people(query: \"https://orcid.org/0000-0001-5727-2427\", first: 50, after: \"NA\") {
totalCount
pageInfo {
endCursor
hasNextPage
}
nodes {
id
name
givenNamerails
familyName
alternateName
works {
totalCount
published {
id
title
count
}
}
}
}
}"
end

it "returns people information" do
response = LupoSchema.execute(query).as_json

expect(response.status).to(eq(200))
end
end
end

0 comments on commit 129114d

Please sign in to comment.