Skip to content

Commit

Permalink
Test cancel after paid
Browse files Browse the repository at this point in the history
  • Loading branch information
MantisClone committed Oct 30, 2023
1 parent ab1eb42 commit e029a72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/integration-test/test/node-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ describe('ETH localhost request creation and detection test', () => {
payer: payerIdentity,
};

it('can create ETH requests and pay with ETH Fee proxy', async () => {
it('can create ETH requests and pay with ETH Fee proxy and cancel after paid', async () => {
const currencies = [...CurrencyManager.getDefaultList()];
const requestNetwork = new RequestNetwork({
signatureProvider,
Expand Down Expand Up @@ -696,6 +696,10 @@ describe('ETH localhost request creation and detection test', () => {
expect(event?.parameters?.feeAddress).toBe('0x0d1d4e623D10F9FBA5Db95830F7d3839406C6AF2');
// amount in crypto after apply the rates of the fake aggregators
expect(event?.parameters?.to).toBe('0xc12F17Da12cd01a9CDBB216949BA0b41A6Ffc4EB');

// Cancel the request
const cancelData = await request.cancel(payeeIdentity);
expect(data.state).toBe(Types.RequestLogic.STATE.CANCELED);
});

it('can create & pay a request with any to eth proxy', async () => {
Expand Down

0 comments on commit e029a72

Please sign in to comment.