Files
nym/clients/validator/tests/integration/validator.api.querier.test.ts
T
2022-03-03 10:28:26 +00:00

25 lines
670 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);
});
describe("init the validator api querier", () => {
test.skip("get rewarded mixnodes", async () => {
try {
//all mixnodes will have their owners address
let response = await client.getRewardedMixnodes();
//this is dependany on config and network amend shortly
response.forEach((Node) => {
expect(Node.owner.length).toStrictEqual(43);
});
} catch (error) {
throw error;
}
});
});