delete-me/test/authority.test.ts

30 lines
690 B
TypeScript
Raw Normal View History

2023-03-26 20:12:52 +00:00
import {cliTest,createBond} from './helper';
const args= "authority "
2023-03-27 06:49:33 +00:00
const name="laconic"
2023-03-26 20:12:52 +00:00
var bondId: string;
describe("test authority",() => {
beforeAll(async () => {
// get bond id
bondId=createBond("aphoton","1000000000")
});
it("reserve authority",async ()=>{
const resp=cliTest(args+"reserve "+name);
expect(resp).toBeDefined;
});
it("lookup authority information.",async ()=>{
const resp=cliTest(args+"whois "+ name);
expect(resp).toBeDefined;
});
it("set authority bond",async ()=>{
const resp=cliTest(args+"bond set "+name+" "+bondId);
expect(resp).toBeDefined;
});
});