From f6678b824c88c3a78b50aa3e655278b857629f10 Mon Sep 17 00:00:00 2001
From: gregor <gregor.schulz@holi.social>
Date: Fri, 21 Mar 2025 10:04:51 +0100
Subject: [PATCH] adapt tests

---
 app/fetch_events_test.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/fetch_events_test.ts b/app/fetch_events_test.ts
index 983c8e7..ad7caf0 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)
   })
-- 
GitLab