toInclude =
  (exp, expCode = 200) =>
  (res) => {
    if (res.statusCode !== expCode) {
      console.log(res.text);
      throw new Error(
        `Expected status ${expCode} when looking for "${exp}", received ${res.statusCode}`
      );
    }
    const check = (txt) => res.text.includes(txt);
    if (Array.isArray(exp)) {
      if (!exp.some(check)) {
        console.log(res.text);
        throw new Error(`Expected text from [${exp.join(", ")}] not found`);
      }
    } else if (!check(exp)) {
      console.log(res.text);
      throw new Error(`Expected text ${exp} not found`);
    }
  }
@param {string|string[]} exp expected string or for arrrays at least one must be present
@param {number} expCode
@returns {void}
@throws {Error}