fix(core): update
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
|
||||
import { Qenv } from '@pushrocks/qenv';
|
||||
|
||||
const testQenv = new Qenv('./', './.nogit');
|
||||
|
||||
import * as bobcat from '../ts/index';
|
||||
|
||||
let testBobcatManager: bobcat.BobcatManager;
|
||||
@ -9,8 +13,17 @@ tap.test('first test', async () => {
|
||||
expect(testBobcatManager).toBeInstanceOf(bobcat.BobcatManager);
|
||||
});
|
||||
|
||||
tap.test('should add a Bobcat miner', async () => {
|
||||
const bobcatAddresses = testQenv.getEnvVarOnDemand('BOBCATS').split(',');
|
||||
console.log(bobcatAddresses);
|
||||
|
||||
for (const bobcatAddress of bobcatAddresses) {
|
||||
await testBobcatManager.addBobcat(bobcatAddress);
|
||||
}
|
||||
});
|
||||
|
||||
tap.test('', async () => {
|
||||
testBobcat = new bobcat.Bobcat();
|
||||
testBobcat = new bobcat.Bobcat('bobcat.bleu.de');
|
||||
expect(testBobcat).toBeInstanceOf(bobcat.Bobcat);
|
||||
})
|
||||
|
Reference in New Issue
Block a user