From 6f69437085fe59610ff37b99408177ec8a684075 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Fri, 3 Dec 2021 22:28:39 -0300 Subject: [PATCH 1/2] docs: add IanVS as a contributor for code (#423) * docs: update README.md * docs: update .all-contributorsrc Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 9 +++++++++ README.md | 1 + 2 files changed, 10 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index e3fe1602..49f8de83 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -659,6 +659,15 @@ "contributions": [ "code" ] + }, + { + "login": "IanVS", + "name": "Ian VanSchooten", + "avatar_url": "https://avatars.githubusercontent.com/u/4616705?v=4", + "profile": "https://github.com/IanVS", + "contributions": [ + "code" + ] } ], "repoHost": "https://github.com", diff --git a/README.md b/README.md index 074152f0..3665b348 100644 --- a/README.md +++ b/README.md @@ -1356,6 +1356,7 @@ Thanks goes to these people ([emoji key][emojis]):
tu4mo

📖
Matan Borenkraout

📦
Yann Braga

💻 +
Ian VanSchooten

💻 From a9beb47455dae0f455ddacc473d0ddabe09f0b43 Mon Sep 17 00:00:00 2001 From: Krisan Alifari Date: Mon, 6 Dec 2021 19:03:18 +0700 Subject: [PATCH 2/2] fix: Improve `toHaveClass` error message format (#405) --- src/to-have-class.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/to-have-class.js b/src/to-have-class.js index b9ff0fee..be59be3a 100644 --- a/src/to-have-class.js +++ b/src/to-have-class.js @@ -42,6 +42,11 @@ export function toHaveClass(htmlElement, ...params) { const to = this.isNot ? 'not to' : 'to' return getMessage( this, + this.utils.matcherHint( + `${this.isNot ? '.not' : ''}.toHaveClass`, + 'element', + this.utils.printExpected(expected.join(' ')), + ), `Expected the element ${to} have EXACTLY defined classes`, expected.join(' '), 'Received',