mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: test
This commit is contained in:
parent
4c40f5afd2
commit
310456b370
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user