h_contract is also welcome in the order status url
This commit is contained in:
parent
2c0464b494
commit
13c32b0314
@ -72,8 +72,13 @@ runTest(async (t: GlobalTestState) => {
|
||||
|
||||
let tokenBefore = statusUrlBefore.searchParams.get("token")
|
||||
let tokenAfter = statusUrlAfter.searchParams.get("token")
|
||||
let hashContractAfter = statusUrlAfter.searchParams.get("h_contract")
|
||||
|
||||
t.assertTrue(tokenBefore === tokenAfter)
|
||||
// after claiming the contract, we either want its hash in the
|
||||
// status url, or at least see again its token in the status url.
|
||||
t.assertTrue(
|
||||
(hashContractAfter !== null) || (tokenBefore === tokenAfter)
|
||||
)
|
||||
|
||||
await t.shutdown();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user