Skip to content

Commit 19b0e1e

Browse files
committed
Fix test
1 parent a266e0b commit 19b0e1e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/client/eppo-precomputed-client.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { IConfigurationStore } from '../configuration-store/configuration-store'
66
import { MemoryOnlyConfigurationStore } from '../configuration-store/memory.store';
77
import { DEFAULT_POLL_INTERVAL_MS, MAX_EVENT_QUEUE_SIZE, POLL_JITTER_PCT } from '../constants';
88
import FetchHttpClient from '../http-client';
9-
import { PrecomputedFlag, VariationType } from '../interfaces';
9+
import { FormatEnum, PrecomputedFlag, VariationType } from '../interfaces';
1010
import { encodeBase64, getMD5Hash } from '../obfuscation';
1111
import PrecomputedRequestor from '../precomputed-requestor';
1212

@@ -625,6 +625,6 @@ describe('EppoPrecomputedClient E2E test', () => {
625625
expect(td.explain(mockLogger.logAssignment).callCount).toEqual(1);
626626
const loggedEvent = td.explain(mockLogger.logAssignment).calls[0].args[0];
627627

628-
expect(loggedEvent.format).toEqual('PRECOMPUTED');
628+
expect(loggedEvent.format).toEqual(FormatEnum.PRECOMPUTED);
629629
});
630630
});

src/evaluator.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Evaluator, hashKey, isInShardRange, matchesRules } from './evaluator';
2-
import { Flag, Variation, Shard, VariationType, ConfigDetails } from './interfaces';
2+
import { Flag, Variation, Shard, VariationType, ConfigDetails, FormatEnum } from './interfaces';
33
import { getMD5Hash } from './obfuscation';
44
import { ObfuscatedOperatorType, OperatorType, Rule } from './rules';
55
import { DeterministicSharder } from './sharders';
@@ -20,6 +20,7 @@ describe('Evaluator', () => {
2020
},
2121
configFetchedAt: new Date().toISOString(),
2222
configPublishedAt: new Date().toISOString(),
23+
configFormat: FormatEnum.CLIENT,
2324
};
2425
});
2526

0 commit comments

Comments
 (0)