From ddf46171113e1c4e927b80a194d2be110e147602 Mon Sep 17 00:00:00 2001 From: hiba-aldalaty Date: Thu, 4 Nov 2021 14:08:29 +0000 Subject: [PATCH] Update context passed in Shortcuts.test.tsx and ShortcutItem.test.tsx Signed-off-by: hiba-aldalaty --- plugins/shortcuts/src/ShortcutItem.test.tsx | 4 +++- plugins/shortcuts/src/Shortcuts.test.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/shortcuts/src/ShortcutItem.test.tsx b/plugins/shortcuts/src/ShortcutItem.test.tsx index f452ec095d..c8f5e4b0ca 100644 --- a/plugins/shortcuts/src/ShortcutItem.test.tsx +++ b/plugins/shortcuts/src/ShortcutItem.test.tsx @@ -37,7 +37,9 @@ describe('ShortcutItem', () => { it('displays the shortcut', async () => { await renderInTestApp( - {} }}> + {}, handleClose: () => {} }} + > , ); diff --git a/plugins/shortcuts/src/Shortcuts.test.tsx b/plugins/shortcuts/src/Shortcuts.test.tsx index fa8e6be440..f0c85aaf5f 100644 --- a/plugins/shortcuts/src/Shortcuts.test.tsx +++ b/plugins/shortcuts/src/Shortcuts.test.tsx @@ -30,7 +30,9 @@ const apis = ApiRegistry.from([ describe('Shortcuts', () => { it('displays an add button', async () => { await renderInTestApp( - {} }}> + {}, handleClose: () => {} }} + >