Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parthverma1 committed Jul 25, 2024
1 parent 6806e96 commit 602e247
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/request-flow/pm-send-request-cookies.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ var _ = require('lodash'),
headers = historyOne.execution.data[1].request.headers;

// cookies are set after the first response in redirect
const cookieHeaderIndex = headers.findIndex((header) => header.key === 'Cookie');
const cookieHeaderIndex = headers.findIndex((header) => { header.key === 'Cookie'; });

expect(cookieHeaderIndex).to.be.greaterThan(-1);
expect(headers[cookieHeaderIndex].value).to.not.include('foo=bar');

Expand Down Expand Up @@ -492,7 +493,8 @@ var _ = require('lodash'),
historyOne = testrun.response.firstCall.lastArg,
headers = historyOne.execution.data[1].request.headers;

const cookieHeaderIndex = headers.findIndex((header) => header.key === 'Cookie');
const cookieHeaderIndex = headers.findIndex((header) => { return header.key === 'Cookie'; });

expect(cookieHeaderIndex).to.be.greaterThan(-1);
expect(headers[cookieHeaderIndex].value).to.include('foo=bar;');

Expand Down

0 comments on commit 602e247

Please sign in to comment.