Skip to content

Commit 651cb66

Browse files
committed
fix type and lint errors
1 parent d4371b9 commit 651cb66

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/cache/abstract-assignment-cache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ import { getMD5Hash } from '../obfuscation';
22

33
import { LRUCache } from './lru-cache';
44

5-
export type FlagAssignmentCacheValue = {
5+
type FlagAssignmentCacheValue = {
66
allocationKey: string;
77
variationKey: string;
88
};
99

10-
export type BanditAssignmentCacheValue = {
10+
type BanditAssignmentCacheValue = {
1111
banditKey: string;
1212
actionKey: string;
1313
};
1414

15-
type AssignmentCacheValue = FlagAssignmentCacheValue | BanditAssignmentCacheValue;
15+
export type AssignmentCacheValue = FlagAssignmentCacheValue | BanditAssignmentCacheValue;
1616

1717
export type AssignmentCacheKey = {
1818
subjectKey: string;

src/client/eppo-client-with-bandits.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,13 @@ describe('EppoClient Bandits E2E test', () => {
440440

441441
// Convenience method for repeatedly making the exact same assignment call
442442
function requestClientBanditAction(): Omit<IAssignmentDetails<string>, 'evaluationDetails'> {
443-
return client.getBanditAction(flagKey, subjectKey, subjectAttributes, ['toyota', 'honda'], 'control');
443+
return client.getBanditAction(
444+
flagKey,
445+
subjectKey,
446+
subjectAttributes,
447+
['toyota', 'honda'],
448+
'control',
449+
);
444450
}
445451

446452
beforeAll(() => {

0 commit comments

Comments
 (0)