From d8c1546021c2f371b5f864f1d582cdf638cbb773 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Sat, 12 Dec 2020 12:29:57 +0100 Subject: [PATCH] Don't rely on to satisfy with a messy.StatusLine instance as the RHS https://github.com/unexpectedjs/unexpected/pull/781 --- lib/unexpectedMessy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unexpectedMessy.js b/lib/unexpectedMessy.js index d578aee..928f6d1 100644 --- a/lib/unexpectedMessy.js +++ b/lib/unexpectedMessy.js @@ -1543,7 +1543,7 @@ module.exports = { return expect( _.pick(subject, messy.StatusLine.propertyNames), 'to satisfy', - value + _.pick(value, messy.StatusLine.propertyNames) ); } else { return expect(subject.toString(), 'to satisfy', value);