diff --git a/app/fetch_events_test.ts b/app/fetch_events_test.ts index 983c8e7ebb420703414aa8ba0e3a68dde0618f72..ad7caf00ca2819f5e7e67d33f46688fa7a5710d9 100644 --- a/app/fetch_events_test.ts +++ b/app/fetch_events_test.ts @@ -18,7 +18,7 @@ describe('fetchEvents', () => { it('can make sense of an empty response', async () => { using _ = fakeFetch(emptyPageResponse) - const result = await fetchEvents({ offset: 0, limit: 1 }) + const result = await fetchEvents({ offset: 0, limit: 1, localOnly: false }) assertEquals(result, { data: [], @@ -29,7 +29,7 @@ describe('fetchEvents', () => { it('can fetch an event', async () => { using _ = fakeFetch(aPageResponse([RealTimedEvent], true, true)) - const result = await fetchEvents({ offset: 0, limit: 1 }) + const result = await fetchEvents({ offset: 0, limit: 1, localOnly: false }) assertEquals(result, { data: [ @@ -80,7 +80,7 @@ describe('fetchEvents', () => { returnsNext([firstPageResponse]), ) - const result = await fetchEvents({ offset: 0, limit: 2 }) + const result = await fetchEvents({ offset: 0, limit: 2, localOnly: false }) assertEquals(result.data[0].title, 'OnlineTimedEvent', 'its the OnlineTimedEvent') assertEquals(result.data[2].title, 'OnlineTimedEvent', 'its the OnlineTimedEvent') @@ -111,7 +111,7 @@ describe('fetchEvents', () => { returnsNext([firstPageResponse, secondPageResponse]), ) - const result = await fetchEvents({ offset: 0, limit: 1 }) + const result = await fetchEvents({ offset: 0, limit: 1, localOnly: false }) assertEquals(result.totalResults, 2) })