Skip to content
Snippets Groups Projects
Commit f6678b82 authored by Gregor Schulz's avatar Gregor Schulz
Browse files

adapt tests

parent d861cda4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment