Skip to content

Commit 3f5c734

Browse files
committed
reverted unneccessary change in test
1 parent 55be7b1 commit 3f5c734

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/sdk/server-ai/__tests__/LDAIClientImpl.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ const mockLdClient: jest.Mocked<LDClientMin> = {
1212

1313
const testContext: LDContext = { kind: 'user', key: 'test-user' };
1414

15-
beforeEach(() => {
16-
jest.clearAllMocks();
17-
});
18-
1915
it('returns config with interpolated messagess', async () => {
2016
const client = new LDAIClientImpl(mockLdClient);
2117
const key = 'test-flag';
@@ -28,7 +24,7 @@ it('returns config with interpolated messagess', async () => {
2824
const mockVariation = {
2925
model: {
3026
name: 'example-model',
31-
parameters: { name: 'imagination', temperature: 0.7 },
27+
parameters: { name: 'imagination', temperature: 0.7, maxTokens: 4096 },
3228
},
3329
provider: {
3430
name: 'example-provider',
@@ -51,7 +47,7 @@ it('returns config with interpolated messagess', async () => {
5147
expect(result).toEqual({
5248
model: {
5349
name: 'example-model',
54-
parameters: { name: 'imagination', temperature: 0.7 },
50+
parameters: { name: 'imagination', temperature: 0.7, maxTokens: 4096 },
5551
},
5652
provider: {
5753
name: 'example-provider',

0 commit comments

Comments
 (0)