Skip to content

Commit

Permalink
Updated tests to be compatible with givback is paid / 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed Dec 27, 2022
1 parent 0d1cb93 commit 833518d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/routes/v1/notificationRouter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,11 @@ function sendNotificationTestCases() {
sendEmail: false,
sendSegment: false,
userWalletAddress: generateRandomEthereumAddress(),
metadata: {},
metadata: {
contractName: 'Gnosis Chain Token Distro',
network: 100,
transactionHash: generateRandomTxHash(),
},
};

await axios.post(sendNotificationUrl, data, {
Expand All @@ -1474,7 +1478,7 @@ function sendNotificationTestCases() {
e.response.data.message,
errorMessagesEnum.IMPACT_GRAPH_VALIDATION_ERROR.message,
);
assert.equal(e.response.data.description, '"round" is required');
assert.equal(e.response.data.description, '"amount" is required');
}
});

Expand Down

0 comments on commit 833518d

Please sign in to comment.