diff --git a/lib/commands/entities/tests/PlaybackRequestMap.spec.js b/lib/commands/entities/tests/PlaybackRequestMap.spec.js index dab8f8b..8319d96 100644 --- a/lib/commands/entities/tests/PlaybackRequestMap.spec.js +++ b/lib/commands/entities/tests/PlaybackRequestMap.spec.js @@ -179,7 +179,8 @@ describe('PlaybackRequestMap', () => { // Act - Add the response twice, as we set toBeCalledAtLeast to 2. const response = { statusCode: 200, statusMessage: 'OK', headers: { 'mock-header': 'yes' } }; - map.addResponse(id, { stuff: 1, url: '/todo/1' }, { ...response, body: 'body-string-1' }); + map.addResponse(id, { stuff: 1, url: '/todo/1' }, { ...response, body: 'body-string-1.1' }); + map.addResponse(id, { stuff: 1, url: '/todo/1' }, { ...response, body: 'body-string-1.2' }); map.addResponse(id, { stuff: 2, url: '/todo/2' }, { ...response, body: 'body-string-2' }); // Assert @@ -198,13 +199,22 @@ describe('PlaybackRequestMap', () => { { id: 'mock-intercepted-response-id-1', url: '/todo/1', - responses: [{ - statusCode: 200, - statusMessage: 'OK', - body: 'body-string-1', - bodyType: 'string', - headers: { 'mock-header': 'yes' }, - }] + responses: [ + { + statusCode: 200, + statusMessage: 'OK', + body: 'body-string-1.1', + bodyType: 'string', + headers: { 'mock-header': 'yes' }, + }, + { + statusCode: 200, + statusMessage: 'OK', + body: 'body-string-1.2', + bodyType: 'string', + headers: { 'mock-header': 'yes' }, + } + ] }, { id: 'mock-intercepted-response-id-2',