Skip to content

Commit 080bc76

Browse files
committed
refactor: improving lib code reuse
1 parent 4173e04 commit 080bc76

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

__tests__/integration/balance.test.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,7 @@ describe('balance routes', () => {
8888
symbol: 'TST',
8989
amount: tokenAmount,
9090
});
91-
9291
const tokenHash = newToken.hash;
93-
TestUtils.logTx(`Created ${tokenAmount} tokens TST on ${wallet3.walletId} - Hash ${tokenHash}`);
94-
95-
// Giving some time for the Wallet Headless to receive the transaction update from the fullnode
96-
// via websocket.
97-
await TestUtils.delay(1000);
9892

9993
const balanceResult = await TestUtils.request
10094
.get('/wallet/balance')

__tests__/integration/utils/test-utils-integration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-console */
22

33
import supertest from 'supertest';
4-
import { wallet } from '@hathor/wallet-lib';
4+
import { wallet, HathorWallet } from '@hathor/wallet-lib';
55
import app from '../../../src';
66
import { loggers } from '../txLogger';
77

@@ -142,7 +142,7 @@ export class TestUtils {
142142
const res = await request
143143
.get('/wallet/status')
144144
.set(TestUtils.generateHeader(walletObj.walletId));
145-
if (res.body?.statusMessage === 'Ready') {
145+
if (res.body?.statusCode === HathorWallet.READY) {
146146
status = res.body;
147147
break;
148148
}

0 commit comments

Comments
 (0)