Open GregSutcliffe opened 3 years ago
Tests added as per discussion in #112
Ugh, tests have failed. They pass for me locally with testthat::test_file('tests/testthat/test-find_groups.R')
, I will investigate...
That's got it. Forgot part of a commit from my local branch :)
@ledell would you have time to have a look? :slightly_smiling_face:
As per discussion, I removed the initial call to
meetup_call
as it appeared to be duplicating results whereoffsetn == 2
.Since we now don't actually use
i
in the API calls (it's all handled bynext_page
) I've also taken the opportunity to make the code more readable:offfsetn
is renamed tomax_pages
, and we start the loop from 2 so we're clear it's all the subsequent pages.Also, I snuck in an extra commit for default values on
organizer
because I keep tripping over that - but I can break it out to another PR if you wish.I'll take a look at the tests now, but I wanted to get this posted while it was fresh in my head.