fix(core): update
This commit is contained in:
20
test/test.ts
Normal file
20
test/test.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as helium from '../ts/index';
|
||||
|
||||
let testHelium: helium.Helium;
|
||||
|
||||
tap.test('should create a valid helium class', async () => {
|
||||
testHelium = new helium.Helium();
|
||||
expect(testHelium).toBeInstanceOf(helium.Helium);
|
||||
});
|
||||
|
||||
tap.test('should create and update a wallet', async () => {
|
||||
const wallet = await testHelium.addWalletByAddress('13L7By1BmboTx1hRUuN3MtMjNmTFaWj5C6EbRZCK2sceaRCWZev');
|
||||
console.log(wallet.earningsHnt24h);
|
||||
console.log(wallet.earningsHnt7d);
|
||||
console.log(wallet.earningsHnt14d);
|
||||
console.log(wallet.earningsHnt30d);
|
||||
console.log(wallet.hotspots);
|
||||
})
|
||||
|
||||
tap.start();
|
Reference in New Issue
Block a user