Skip to content

Commit

Permalink
testcase: add firma util test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
fly33499 committed Oct 13, 2021
1 parent ea81f80 commit 446a042
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/18.util.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { expect } from 'chai';
import { FirmaUtil } from '..';

describe('[18. util Test]', () => {

it.only('getValOperAddressFromAccAddress test', async () => {

const accAddress = "firma134pp6s2nv7pl4mxu58aeufdd6fv5s2zujrrmsa";
const valoperAddress = "firmavaloper134pp6s2nv7pl4mxu58aeufdd6fv5s2zuvsgqsn";

let result = FirmaUtil.getValOperAddressFromAccAddress(accAddress);
expect(result).to.be.equal(valoperAddress);
})

it.only('getAccAddressFromValOperAddress test', async () => {

const accAddress = "firma134pp6s2nv7pl4mxu58aeufdd6fv5s2zujrrmsa";
const valoperAddress = "firmavaloper134pp6s2nv7pl4mxu58aeufdd6fv5s2zuvsgqsn";

let result = FirmaUtil.getAccAddressFromValOperAddress(valoperAddress);
expect(result).to.be.equal(accAddress);
})
});

0 comments on commit 446a042

Please sign in to comment.