taler-util: check status of merchant instances list response
This commit is contained in:
parent
dceae7e688
commit
a437605eba
@ -1 +1 @@
|
||||
Subproject commit 001f5dd081fc8729ff8def90c4a1c3f93eb8689a
|
||||
Subproject commit 23538677f6c6be2a62f38dc6137ecdd1c76b7b15
|
@ -193,7 +193,6 @@ export async function runMerchantInstancesTest(t: GlobalTestState) {
|
||||
});
|
||||
console.log(exc);
|
||||
t.assertTrue(exc.errorDetail.httpStatusCode === 401);
|
||||
t.assertDeepEqual(exc.response?.status, 401);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
|
||||
import { codecForAny } from "./codec.js";
|
||||
import {
|
||||
createPlatformHttpLib,
|
||||
expectSuccessResponseOrThrow,
|
||||
@ -221,7 +222,7 @@ export class MerchantApiClient {
|
||||
const resp = await this.httpClient.fetch(url.href, {
|
||||
headers: this.makeAuthHeader(),
|
||||
});
|
||||
return resp.json();
|
||||
return readSuccessResponseJsonOrThrow(resp, codecForAny());
|
||||
}
|
||||
|
||||
async getInstanceFullDetails(instanceId: string): Promise<any> {
|
||||
|
Loading…
Reference in New Issue
Block a user