Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Nov 27, 2024
1 parent 1a72974 commit ac60b53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/experiment-tag/test/experiment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,11 @@ describe('initializeExperiment', () => {
createMutateFlag('test', 'treatment', [], [], [], 'remote'),
];
const remoteFlags = [createMutateFlag('test', 'treatment')];

const mockHttpClient = new MockHttpClient(JSON.stringify(remoteFlags), 200);

const doFlagsMock = jest.spyOn(ExperimentClient.prototype, 'doFlags');
const doFlagsMock = jest.spyOn(
ExperimentClient.prototype as any,
'doFlags',
);
initializeExperiment(stringify(apiKey), JSON.stringify(initialFlags), {
httpClient: mockHttpClient,
}).then(() => {
Expand Down

0 comments on commit ac60b53

Please sign in to comment.