(first, second, shouldBeSame)
| 7 | */ |
| 8 | |
| 9 | const compareResponses = async (first, second, shouldBeSame) => { |
| 10 | const firstBody = await first.clone().text(); |
| 11 | const secondBody = await second.clone().text(); |
| 12 | |
| 13 | if (shouldBeSame) { |
| 14 | expect(firstBody).to.equal(secondBody); |
| 15 | } else { |
| 16 | expect(firstBody).to.not.equal(secondBody); |
| 17 | } |
| 18 | }; |
| 19 | |
| 20 | export {compareResponses}; |
no test coverage detected