Files
nym/clients/validator/tests/integration/validator.api.querier.test.ts
T
Tommy Verrall f8171f3beb update integration test for when run in gh actions
- removing and cleaning
- next step is to start mocking out a few of the other basic interactions with the client
2022-01-19 16:49:46 +00:00

26 lines
677 B
TypeScript

import ValidatorApiQuerier from '../../src/validator-api-querier';
import { config } from '../test-utils/config';
let client: ValidatorApiQuerier;
beforeEach(() => {
client = new ValidatorApiQuerier(config.VALIDATOR_API as string);
});
describe("init the validator api querier", () => {
test("get rewarded mixnodes", async () => {
try {
//all mixnodes will have their owners address
let response = await client.getRewardedMixnodes();
response.forEach((Node) => {
expect(Node.owner.length).toStrictEqual(43);
})
}
catch (error) {
throw error;
}
});
});