File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/shared/sdk-client/__tests__ Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ( / ^ e r r o r : .* t e s t - e r r o r / ) ) ;
274+ expect ( logger . error ) . toHaveBeenCalledTimes ( 2 ) ;
275+ expect ( logger . error ) . toHaveBeenNthCalledWith ( 1 , expect . stringMatching ( / ^ e r r o r : .* t e s t - e r r o r / ) ) ;
276+ expect ( logger . error ) . toHaveBeenNthCalledWith ( 2 , expect . stringContaining ( 'Received error 404' ) ) ;
276277 } ) ;
277278
278279 test ( 'identify change and error listeners' , async ( ) => {
You can’t perform that action at this time.
0 commit comments