Skip to content

Commit

Permalink
fixup! sdk: add decoding errors for doing a transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
weilbith committed Jun 18, 2020
1 parent c47d99c commit 1343ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raiden-ts/tests/e2e/raiden.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ describe('Raiden', () => {
test('invalid amount', async () => {
expect.assertions(1);
await expect(raiden.transfer(token, partner, -1)).rejects.toThrowError(
/Invalid value.*UInt/i,
/Invalid amount parameter./i,
);
});

Expand Down Expand Up @@ -743,7 +743,7 @@ describe('Raiden', () => {
test('invalid provided paymentId', async () => {
expect.assertions(1);
await expect(raiden.transfer(token, partner, 23, { paymentId: -1 })).rejects.toThrowError(
/Invalid value.*UInt/i,
/Invalid payment identifier parameter./i,
);
});

Expand All @@ -753,7 +753,7 @@ describe('Raiden', () => {
raiden.transfer(token, partner, 23, {
paths: [{ path: ['0xnotAnAddress'], fee: 0 }],
}),
).rejects.toThrowError(/Invalid value.*Address/i);
).rejects.toThrowError(/Invalid path parameter./i);
});

test('target not available', async () => {
Expand Down

0 comments on commit 1343ca6

Please sign in to comment.