Skip to content

Commit d463667

Browse files
committed
fixing test that broke due to fixing missing logger parameter.
1 parent d1e962a commit d463667

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/shared/sdk-client/__tests__/LDClientImpl.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,9 @@ describe('sdk-client object', () => {
271271
const carContext: LDContext = { kind: 'car', key: 'test-car' };
272272

273273
await expect(ldc.identify(carContext)).rejects.toThrow('test-error');
274-
expect(logger.error).toHaveBeenCalledTimes(1);
275-
expect(logger.error).toHaveBeenCalledWith(expect.stringMatching(/^error:.*test-error/));
274+
expect(logger.error).toHaveBeenCalledTimes(2);
275+
expect(logger.error).toHaveBeenNthCalledWith(1, expect.stringMatching(/^error:.*test-error/));
276+
expect(logger.error).toHaveBeenNthCalledWith(2, expect.stringContaining('Received error 404'));
276277
});
277278

278279
test('identify change and error listeners', async () => {

0 commit comments

Comments
 (0)