Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Dec 29, 2023
1 parent 6aeea4b commit aa7c75e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ function mockTransactionOutcome(receiverId, methodName, outcome, callback) {
}
callback && callback(transaction);
return rpcResult(body.id, {
// TODO: Hardcoded for now, figure out stucture of failure response before fixing
status: {
SuccessValue: '',
},
transaction_outcome: {
outcome,
},
Expand All @@ -336,13 +340,12 @@ function mockTransactionOutcome(receiverId, methodName, outcome, callback) {
function mockTransactionSuccess(receiverId, methodName, callback) {
return mockTransactionOutcome(receiverId, methodName, {
logs: [],
status: {
SuccessValue: '',
},
receipt_ids: [],
}, callback);
}

// TODO: Test contract call failure with error message

test('/web4/contract/test.near/web4_setStaticUrl method call with key in cookie', async t => {
await setup(t);

Expand Down

0 comments on commit aa7c75e

Please sign in to comment.