laconic-registry-cli/test/record.test.ts

29 lines
633 B
TypeScript
Raw Normal View History

2023-03-24 11:32:38 +00:00
import {cliTest} from './helper';
const args= "record "
var recordId: string;
var filename: string;
var bondId: string;
describe("test names",() => {
beforeAll(async () => {
// get bond id
});
it("publish record",async ()=>{
const resp=cliTest(args+"publish --filename "+filename+" --bond-id "+bondId);
expect(resp).toBeDefined;
});
it("get record",async ()=>{
const resp=cliTest(args+"get --id "+recordId);
expect(resp).toBeDefined;
});
it("list records",async ()=>{
const resp=cliTest(args+"list");
expect(resp).toBeDefined;
});
});