diff --git a/test/integration/request-flow/pm-send-request-cookies.test.js b/test/integration/request-flow/pm-send-request-cookies.test.js index 79f1563f1..83e29c5ab 100644 --- a/test/integration/request-flow/pm-send-request-cookies.test.js +++ b/test/integration/request-flow/pm-send-request-cookies.test.js @@ -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'); @@ -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;');