Skip to content

Commit 1060914

Browse files
committed
small cleanup
1 parent 21c7e03 commit 1060914

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/plugins/dashboard/public/application/actions/unlink_from_library_action.test.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,15 @@ beforeEach(async () => {
6969

7070
if (isErrorEmbeddable(contactCardEmbeddable)) {
7171
throw new Error('Failed to create embeddable');
72-
} else {
73-
embeddable = embeddablePluginMock.mockRefOrValEmbeddable<
74-
ContactCardEmbeddable,
75-
ContactCardEmbeddableInput
76-
>(contactCardEmbeddable, {
77-
mockedByReferenceInput: { savedObjectId: 'testSavedObjectId', id: contactCardEmbeddable.id },
78-
mockedByValueInput: { firstName: 'Kibanana', id: contactCardEmbeddable.id },
79-
});
80-
embeddable.updateInput({ viewMode: ViewMode.EDIT });
8172
}
73+
embeddable = embeddablePluginMock.mockRefOrValEmbeddable<
74+
ContactCardEmbeddable,
75+
ContactCardEmbeddableInput
76+
>(contactCardEmbeddable, {
77+
mockedByReferenceInput: { savedObjectId: 'testSavedObjectId', id: contactCardEmbeddable.id },
78+
mockedByValueInput: { firstName: 'Kibanana', id: contactCardEmbeddable.id },
79+
});
80+
embeddable.updateInput({ viewMode: ViewMode.EDIT });
8281
});
8382

8483
test('Unlink is compatible when embeddable on dashboard has reference type input', async () => {

0 commit comments

Comments
 (0)