Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikOseberg committed Dec 16, 2024
1 parent 4c40f5a commit 310456b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 310456b

Please sign in to comment.