delete-me/test/record.test.ts
2023-03-24 17:02:38 +05:30

29 lines
633 B
TypeScript

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;
});
});