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',