From 10609146bed9724469901707e96baacea367fe86 Mon Sep 17 00:00:00 2001 From: Devon A Thomson Date: Mon, 17 Aug 2020 13:19:23 -0400 Subject: [PATCH] small cleanup --- .../actions/unlink_from_library_action.test.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/plugins/dashboard/public/application/actions/unlink_from_library_action.test.tsx b/src/plugins/dashboard/public/application/actions/unlink_from_library_action.test.tsx index 11bac6fa1e048..681a6a734a532 100644 --- a/src/plugins/dashboard/public/application/actions/unlink_from_library_action.test.tsx +++ b/src/plugins/dashboard/public/application/actions/unlink_from_library_action.test.tsx @@ -69,16 +69,15 @@ beforeEach(async () => { if (isErrorEmbeddable(contactCardEmbeddable)) { throw new Error('Failed to create embeddable'); - } else { - embeddable = embeddablePluginMock.mockRefOrValEmbeddable< - ContactCardEmbeddable, - ContactCardEmbeddableInput - >(contactCardEmbeddable, { - mockedByReferenceInput: { savedObjectId: 'testSavedObjectId', id: contactCardEmbeddable.id }, - mockedByValueInput: { firstName: 'Kibanana', id: contactCardEmbeddable.id }, - }); - embeddable.updateInput({ viewMode: ViewMode.EDIT }); } + embeddable = embeddablePluginMock.mockRefOrValEmbeddable< + ContactCardEmbeddable, + ContactCardEmbeddableInput + >(contactCardEmbeddable, { + mockedByReferenceInput: { savedObjectId: 'testSavedObjectId', id: contactCardEmbeddable.id }, + mockedByValueInput: { firstName: 'Kibanana', id: contactCardEmbeddable.id }, + }); + embeddable.updateInput({ viewMode: ViewMode.EDIT }); }); test('Unlink is compatible when embeddable on dashboard has reference type input', async () => {