fix(core): update

This commit is contained in:
2022-02-25 20:36:44 +01:00
parent babcb832f3
commit e5fe74d2d2
6 changed files with 294 additions and 142 deletions

View File

@ -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);
})