render expects a promise return value (#16906) (#16909)

This commit is contained in:
Stacey Gammon 2018-02-25 12:40:12 -05:00 committed by GitHub
parent 0c9ee415e6
commit 323ff3678f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ export function getEmbeddableFactoryMock(config) {
const embeddableFactoryMockDefaults = {
getEditPath: () => {},
getTitleFor: () => {},
render: jest.fn(),
render: jest.fn(() => Promise.resolve({})),
destroy: () => {},
addDestroyEmeddable: () => {},
};