From 3e19999192d63106822dcd6242626065072ac863 Mon Sep 17 00:00:00 2001 From: Brian Botha Date: Wed, 7 Dec 2022 18:06:17 +1100 Subject: [PATCH] tests: small tests fixes --- tests/bin/identities/trustUntrustList.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/bin/identities/trustUntrustList.test.ts b/tests/bin/identities/trustUntrustList.test.ts index 7e8960a6cc..0b0935a927 100644 --- a/tests/bin/identities/trustUntrustList.test.ts +++ b/tests/bin/identities/trustUntrustList.test.ts @@ -176,7 +176,7 @@ describe('trust/untrust/list', () => { }, )); expect(exitCode).toBe(0); - expect(JSON.parse(stdout)).toHaveLength(1); + expect(JSON.parse(stdout)).toHaveLength(2); expect(JSON.parse(stdout)[0]).toEqual({ permissions: ['notify'], nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }], @@ -213,7 +213,7 @@ describe('trust/untrust/list', () => { }, )); expect(exitCode).toBe(0); - expect(JSON.parse(stdout)).toHaveLength(1); + expect(JSON.parse(stdout)).toHaveLength(2); expect(JSON.parse(stdout)[0]).toEqual({ permissions: null, nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }], @@ -324,7 +324,7 @@ describe('trust/untrust/list', () => { }, )); expect(exitCode).toBe(0); - expect(JSON.parse(stdout)).toHaveLength(1); + expect(JSON.parse(stdout)).toHaveLength(2); expect(JSON.parse(stdout)[0]).toEqual({ permissions: ['notify'], nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }], @@ -361,7 +361,7 @@ describe('trust/untrust/list', () => { }, )); expect(exitCode).toBe(0); - expect(JSON.parse(stdout)).toHaveLength(1); + expect(JSON.parse(stdout)).toHaveLength(2); expect(JSON.parse(stdout)[0]).toEqual({ permissions: null, nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }],