Skip to content

Commit

Permalink
test(repeater): requested minors in Response.spec
Browse files Browse the repository at this point in the history
relates-to #22
  • Loading branch information
pmstss committed Apr 22, 2022
1 parent be0d908 commit f96489a
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions packages/repeater/src/request-runner/Response.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,7 @@ describe('Response', () => {

const response = new Response(responseOptions);

const { protocol, statusCode, headers, body, message, errorCode } =
response;
expect({
protocol,
statusCode,
headers,
body,
message,
errorCode
}).toEqual(responseOptions);
expect(response).toMatchObject(responseOptions);
});

it('should create an instance with full fieldset', () => {
Expand All @@ -34,16 +25,7 @@ describe('Response', () => {

const response = new Response(responseOptions);

const { protocol, statusCode, headers, body, message, errorCode } =
response;
expect({
protocol,
statusCode,
headers,
body,
message,
errorCode
}).toEqual(responseOptions);
expect(response).toMatchObject(responseOptions);
});
});
});

0 comments on commit f96489a

Please sign in to comment.