Mock fetching instance document in tests
This commit is contained in:
parent
e7f928a090
commit
c15265ebef
1 changed files with 4 additions and 0 deletions
|
@ -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: '<h1>Instance panel</h1>' })
|
||||
}
|
||||
|
||||
export async function updateSettings(configs, authHost, token) {
|
||||
return Promise.resolve({ data: configAfterUpdate })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue