From ac60b534c57135ed6de40f506daa5486269f181f Mon Sep 17 00:00:00 2001 From: tyiuhc Date: Wed, 27 Nov 2024 13:47:21 -0800 Subject: [PATCH] fix: test --- packages/experiment-tag/test/experiment.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/experiment-tag/test/experiment.test.ts b/packages/experiment-tag/test/experiment.test.ts index 82946da..915be47 100644 --- a/packages/experiment-tag/test/experiment.test.ts +++ b/packages/experiment-tag/test/experiment.test.ts @@ -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(() => {