From 310456b370c1bc0445b834140d7409ee8abcc413 Mon Sep 17 00:00:00 2001 From: FredrikOseberg Date: Mon, 16 Dec 2024 16:13:07 +0100 Subject: [PATCH] fix: test --- .../tests/client-feature-delta-api.e2e.test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts b/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts index be7539c77a..76ada11ea4 100644 --- a/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts +++ b/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts @@ -169,14 +169,11 @@ test('should match with /api/client/delta', async () => { test('should get 304 if asked for latest revision', async () => { await setupFeatures(db, app); - // @ts-ignore - console.log(app.services.clientFeatureToggleService.clientFeatureToggleDelta); - + + // Set current revision id to 14 to test etag. TS ignore to access otherwise inaccessible property. // @ts-ignore app.services.clientFeatureToggleService.clientFeatureToggleDelta.currentRevisionId = 14; - const events = await db.rawDatabase('events').select('*'); - console.log(events); await app.request .set('If-None-Match', '14')