fix test condition

This commit is contained in:
Florian Dold 2020-08-24 20:01:59 +05:30
parent 7deefd5b2d
commit bebb3d7a9b
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -248,9 +248,7 @@ async function testRefundApiWithFulfillmentMessage(
});
console.log(publicOrderStatusResp.data);
// We didn't give any authentication, so we should get a fulfillment URL back
t.assertTrue(publicOrderStatusResp.status === 202);
const fu = publicOrderStatusResp.data.fulfillment_message;
t.assertTrue(typeof fu === "string" && fu.startsWith("Thank you"));
t.assertTrue(publicOrderStatusResp.status === 403);
}
/**