1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: test

This commit is contained in:
FredrikOseberg 2024-12-16 16:13:07 +01:00
parent 4c40f5afd2
commit 310456b370
No known key found for this signature in database
GPG Key ID: 282FD8A6D8F9BCF0

View File

@ -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')