From 2934a854c7a77c8f65316ffa4d411866648c984f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 13 Nov 2022 18:26:43 +0300 Subject: Fix ESLint suggestions --- vnext/src/ui/__tests__/MessageInput.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnext') diff --git a/vnext/src/ui/__tests__/MessageInput.test.js b/vnext/src/ui/__tests__/MessageInput.test.js index 1b5b0442..0bfe2569 100644 --- a/vnext/src/ui/__tests__/MessageInput.test.js +++ b/vnext/src/ui/__tests__/MessageInput.test.js @@ -40,7 +40,7 @@ test('Submits on ctrl-enter and pass validation', async () => { }); expect(onSend).toHaveBeenCalledTimes(2); expect(result).toBe(true); - await waitFor(() => expect(textarea.textContent).toEqual('')); + await waitFor(() => expect(textarea).toHaveTextContent('')); textarea.focus(); expect(textarea).toHaveFocus(); }); -- cgit v1.2.3