Skip to content

Commit

Permalink
fix: walletname for invoice verification test
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Aug 6, 2024
1 parent 9ba6177 commit 441e9f4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions clients/apps/nodejs/test/tb04-simple-lightning-latch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ describe('TB04 - Lightning Latch', function() {
transferReceiveResult = await mercurynodejslib.transferReceive(clientConfig, wallet_2_name);

expect(transferReceiveResult.isThereBatchLocked).is.false;
expect(transferReceiveResult.receivedStatechainIds).not.empty;
expect(transferReceiveResult.receivedStatechainIds).is.empty;

const { preimage } = await mercurynodejslib.retrievePreImage(clientConfig, wallet_1_name, coin.statechain_id, paymentHash.batchId);

Expand Down Expand Up @@ -533,7 +533,7 @@ describe('TB04 - Lightning Latch', function() {
transferReceiveResult = await mercurynodejslib.transferReceive(clientConfig, wallet_2_name);

expect(transferReceiveResult.isThereBatchLocked).is.false;
expect(transferReceiveResult.receivedStatechainIds).not.empty;
expect(transferReceiveResult.receivedStatechainIds).is.empty;

const { preimage } = await mercurynodejslib.retrievePreImage(clientConfig, wallet_1_name, coin.statechain_id, paymentHash.batchId);

Expand All @@ -550,12 +550,8 @@ describe('TB04 - Lightning Latch', function() {

// await removeDatabase();
const clientConfig = client_config.load();
let wallet_1_name = "w_ln_13";
let wallet_2_name = "w_ln_14";
let wallet_3_name = "w_ln_15";
let wallet_1_name = "w_ln_16";
await createWallet(clientConfig, wallet_1_name);
await createWallet(clientConfig, wallet_2_name);
await createWallet(clientConfig, wallet_3_name);

const token = await mercurynodejslib.newToken(clientConfig, wallet_1_name);
const tokenId = token.token_id;
Expand Down

0 comments on commit 441e9f4

Please sign in to comment.