Skip to content

Commit

Permalink
Update test so don't get warning as well as error on mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed May 7, 2024
1 parent 5b319bc commit dfd1b00
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/testthat/test-get_event_attendees.R
Original file line number Diff line number Diff line change
@@ -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))
})

0 comments on commit dfd1b00

Please sign in to comment.