From c15265ebef46244c7a4007921d9a35b4cf10a16d Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 9 Oct 2020 19:19:13 +0300 Subject: [PATCH] Mock fetching instance document in tests --- src/api/__mocks__/settings.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/__mocks__/settings.js b/src/api/__mocks__/settings.js index c2243b9a..628a5e1f 100644 --- a/src/api/__mocks__/settings.js +++ b/src/api/__mocks__/settings.js @@ -34,6 +34,10 @@ export async function fetchSettings(authHost, token) { return Promise.resolve({ data: configsWithTagPolicy }) } +export async function getInstanceDocument(name, authHost, token) { + return Promise.resolve({ data: '

Instance panel

' }) +} + export async function updateSettings(configs, authHost, token) { return Promise.resolve({ data: configAfterUpdate }) }