From 47c290e679373a650fc72c5e211ac1014c8095f5 Mon Sep 17 00:00:00 2001 From: Andrey Myssak Date: Mon, 29 May 2023 15:55:58 +0600 Subject: [PATCH] Remove null from resolve() in icon.test.tsx (#584) Co-authored-by: Sergey Myssak Signed-off-by: Andrey Myssak --- src/components/icon/icon.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/icon/icon.test.tsx b/src/components/icon/icon.test.tsx index 780bdca7ee..03faf02305 100644 --- a/src/components/icon/icon.test.tsx +++ b/src/components/icon/icon.test.tsx @@ -56,11 +56,11 @@ const prettyHtml = cheerio.load(''); function testIcon(props: PropsOf) { return () => { expect.assertions(1); - return new Promise((resolve) => { + return new Promise((resolve) => { const onIconLoad = () => { component.update(); expect(prettyHtml(component.html())).toMatchSnapshot(); - resolve(null); + resolve(); }; const component = mount(); });