deletion test: expect different status code

This commit is contained in:
Florian Dold 2021-03-04 16:10:36 +01:00
parent 90af26ace5
commit 49b5d006db
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -110,7 +110,8 @@ export async function runMerchantInstancesDeleteTest(t: GlobalTestState) {
const unauthMerchantClient = new MerchantApiClient(
merchant.makeInstanceBaseUrl(),
{
method: "external",
method: "token",
token: "secret-token:invalid",
},
);
@ -119,7 +120,7 @@ export async function runMerchantInstancesDeleteTest(t: GlobalTestState) {
});
console.log(exc);
t.assertAxiosError(exc);
t.assertDeepEqual(exc.response?.status, 403);
t.assertDeepEqual(exc.response?.status, 401);
}
}