Mock fetching instance document in tests

This commit is contained in:
Angelina Filippova 2020-10-09 19:19:13 +03:00
parent e7f928a090
commit c15265ebef

View file

@ -34,6 +34,10 @@ export async function fetchSettings(authHost, token) {
return Promise.resolve({ data: configsWithTagPolicy }) return Promise.resolve({ data: configsWithTagPolicy })
} }
export async function getInstanceDocument(name, authHost, token) {
return Promise.resolve({ data: '<h1>Instance panel</h1>' })
}
export async function updateSettings(configs, authHost, token) { export async function updateSettings(configs, authHost, token) {
return Promise.resolve({ data: configAfterUpdate }) return Promise.resolve({ data: configAfterUpdate })
} }