revert .isNot change

This commit is contained in:
Simon Knott 2024-10-31 13:26:58 +01:00
parent 946338d572
commit c8080b5aaa
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -276,12 +276,12 @@ export const expect = baseExpect.extend({
} }
const message = pass const message = pass
? () => this.utils.matcherHint(assertionName, undefined, undefined, { isNot: true }) + ? () => this.utils.matcherHint(assertionName, undefined, undefined, { isNot: this.isNot }) +
'\n\n' + '\n\n' +
`Locator: ${locator}\n` + `Locator: ${locator}\n` +
`Expected: not ${this.utils.printExpected(expected)}\n` + `Expected: not ${this.utils.printExpected(expected)}\n` +
(matcherResult ? `Received: ${this.utils.printReceived(matcherResult.actual)}` : '') (matcherResult ? `Received: ${this.utils.printReceived(matcherResult.actual)}` : '')
: () => this.utils.matcherHint(assertionName, undefined, undefined, { isNot: false }) + : () => this.utils.matcherHint(assertionName, undefined, undefined, { isNot: this.isNot }) +
'\n\n' + '\n\n' +
`Locator: ${locator}\n` + `Locator: ${locator}\n` +
`Expected: ${this.utils.printExpected(expected)}\n` + `Expected: ${this.utils.printExpected(expected)}\n` +