Skip to content

Commit

Permalink
tests: small tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tegefaulkes committed Dec 7, 2022
1 parent 57a90ed commit 3e19999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/bin/identities/trustUntrustList.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) }],
Expand Down Expand Up @@ -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) }],
Expand Down Expand Up @@ -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) }],
Expand Down Expand Up @@ -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) }],
Expand Down

0 comments on commit 3e19999

Please sign in to comment.