We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d6d14 commit 758678cCopy full SHA for 758678c
src/models/expect.js
@@ -128,6 +128,9 @@ class Expect {
128
if (!actualCookie) {
129
this.fail(`'set-cookie' key not found in response headers`);
130
}
131
+ if (Array.isArray(actualCookie) && actualCookie.length > 1) {
132
+ actualCookie = actualCookie.join('; ') + ';';
133
+ }
134
actualCookie = lc.parse(actualCookie);
135
const msg = jlv.validate(actualCookie, expectedCookie, { target: 'Cookie' });
136
if (msg) this.fail(msg);
0 commit comments