Skip to content

Commit 3e19999

Browse files
committed
tests: small tests fixes
1 parent 57a90ed commit 3e19999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/bin/identities/trustUntrustList.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe('trust/untrust/list', () => {
176176
},
177177
));
178178
expect(exitCode).toBe(0);
179-
expect(JSON.parse(stdout)).toHaveLength(1);
179+
expect(JSON.parse(stdout)).toHaveLength(2);
180180
expect(JSON.parse(stdout)[0]).toEqual({
181181
permissions: ['notify'],
182182
nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }],
@@ -213,7 +213,7 @@ describe('trust/untrust/list', () => {
213213
},
214214
));
215215
expect(exitCode).toBe(0);
216-
expect(JSON.parse(stdout)).toHaveLength(1);
216+
expect(JSON.parse(stdout)).toHaveLength(2);
217217
expect(JSON.parse(stdout)[0]).toEqual({
218218
permissions: null,
219219
nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }],
@@ -324,7 +324,7 @@ describe('trust/untrust/list', () => {
324324
},
325325
));
326326
expect(exitCode).toBe(0);
327-
expect(JSON.parse(stdout)).toHaveLength(1);
327+
expect(JSON.parse(stdout)).toHaveLength(2);
328328
expect(JSON.parse(stdout)[0]).toEqual({
329329
permissions: ['notify'],
330330
nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }],
@@ -361,7 +361,7 @@ describe('trust/untrust/list', () => {
361361
},
362362
));
363363
expect(exitCode).toBe(0);
364-
expect(JSON.parse(stdout)).toHaveLength(1);
364+
expect(JSON.parse(stdout)).toHaveLength(2);
365365
expect(JSON.parse(stdout)[0]).toEqual({
366366
permissions: null,
367367
nodes: [{ nodeId: nodesUtils.encodeNodeId(nodeId) }],

0 commit comments

Comments
 (0)