Fix jest/no-conditional-expect lint and enable it (#10307)

This commit is contained in:
Michael Telatynski 2023-03-07 13:58:10 +00:00 committed by GitHub
parent 2c97cb4054
commit af1ec76149
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 49 additions and 83 deletions

View file

@ -186,6 +186,7 @@ describe("WysiwygComposer", () => {
await waitFor(() => {
const selection = document.getSelection();
if (selection) {
// eslint-disable-next-line jest/no-conditional-expect
expect(selection.focusNode?.textContent).toEqual("other");
}
});