diff --git a/inst/graphql/find_attendees.graphql b/inst/graphql/find_attendees.graphql index ad73adf3..3081d281 100644 --- a/inst/graphql/find_attendees.graphql +++ b/inst/graphql/find_attendees.graphql @@ -26,7 +26,6 @@ query eventAttendee( baseUrl } joinTime - timezone organizedGroupCount << extra_graphql >> } diff --git a/tests/testthat/test-get_event_attendees.R b/tests/testthat/test-get_event_attendees.R index 57e36233..f9bb1112 100644 --- a/tests/testthat/test-get_event_attendees.R +++ b/tests/testthat/test-get_event_attendees.R @@ -1,13 +1,11 @@ -expected_names <- c("id", "name", "url", "photo", "organized_group_count") - test_that("get_events_attendees() works with one status", { + + expected_names <- c("id", "name", "url", "photo", "organized_group_count") + vcr::use_cassette("get_event_attendees", { attendees <- get_event_attendees(id = "103349942") }) expect_s3_class(attendees, "data.frame") - expect_true( - all( - names(attendees) == expected_names - )) + expect_setequal(expected_names, names(attendees)) })