f8171f3beb
- removing and cleaning - next step is to start mocking out a few of the other basic interactions with the client
22 lines
762 B
TypeScript
22 lines
762 B
TypeScript
import validator from "../../src/index";
|
|
import { config } from '../test-utils/config';
|
|
|
|
const NETWORK_DENOM = config.CURRENCY_PREFIX;
|
|
|
|
describe("perform basic interactions with the validator", () => {
|
|
test("build client and get all mixnodes", async () => {
|
|
const mnemonic = validator.randomMnemonic();
|
|
const mnemonicCount = mnemonic.split(" ").length;
|
|
|
|
expect(mnemonicCount).toStrictEqual(24);
|
|
});
|
|
|
|
test("build client and get all mixnodes", async () => {
|
|
const buildMnemonic = validator.randomMnemonic();
|
|
const mnemonic = await validator.mnemonicToAddress(buildMnemonic, NETWORK_DENOM);
|
|
|
|
expect(mnemonic).toHaveLength(43);
|
|
expect(mnemonic).toContain(NETWORK_DENOM);
|
|
});
|
|
});
|