From 75a9f504d84be12840a175ae20f91ffa56b0f459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=8C=AF=E6=98=8E?= Date: Thu, 4 Jul 2024 18:36:41 +0800 Subject: [PATCH] feat: Add actual and expected fields to the return value of toBeOneOf --- src/matchers/toBeOneOf.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/matchers/toBeOneOf.js b/src/matchers/toBeOneOf.js index a686c94b..424543a5 100644 --- a/src/matchers/toBeOneOf.js +++ b/src/matchers/toBeOneOf.js @@ -21,5 +21,7 @@ export function toBeOneOf(actual, expected) { ` ${printExpected(expected)}\n` + 'Received:\n' + ` ${printReceived(actual)}`, + actual, + expected, }; }