From 85f350dea9c508c374901b821ea0a29f0836389c Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Wed, 29 Mar 2023 13:12:17 +0530 Subject: [PATCH] json output --- test/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helper.ts b/test/helper.ts index 56e5e22..40f616a 100644 --- a/test/helper.ts +++ b/test/helper.ts @@ -1,7 +1,7 @@ const { execSync } = require("child_process"); export const cliTest = (args: any) => { - return execSync(`./bin/laconic cns ${args} -o json`).toString(); + return JSON.parse(execSync(`./bin/laconic cns ${args}`)); }; export function createBond(type: string, quantity: string):string{