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 () => {