mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +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 () => {
|
test('should get 304 if asked for latest revision', async () => {
|
||||||
await setupFeatures(db, app);
|
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
|
// @ts-ignore
|
||||||
app.services.clientFeatureToggleService.clientFeatureToggleDelta.currentRevisionId = 14;
|
app.services.clientFeatureToggleService.clientFeatureToggleDelta.currentRevisionId = 14;
|
||||||
|
|
||||||
const events = await db.rawDatabase('events').select('*');
|
|
||||||
console.log(events);
|
|
||||||
|
|
||||||
await app.request
|
await app.request
|
||||||
.set('If-None-Match', '14')
|
.set('If-None-Match', '14')
|
||||||
|
Loading…
Reference in New Issue
Block a user