Skip to content

Commit ae86bfd

Browse files
committed
WIP
1 parent 5dbc781 commit ae86bfd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/bin/nodes/add.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Logger, { LogLevel, StreamHandler } from '@matrixai/logger';
66
import { IdInternal } from '@matrixai/id';
77
import PolykeyAgent from '@/PolykeyAgent';
88
import * as nodesUtils from '@/nodes/utils';
9+
import { sysexits } from '@/utils';
910
import * as testBinUtils from '../utils';
1011
import * as testUtils from '../../utils';
1112

@@ -92,7 +93,7 @@ describe('add', () => {
9293
port.toString(),
9394
]);
9495
const result = await testBinUtils.pkStdio(commands, {}, dataDir);
95-
expect(result.exitCode).toBe(64);
96+
expect(result.exitCode).toBe(sysexits.USAGE);
9697
},
9798
global.failedConnectionTimeout,
9899
);
@@ -106,7 +107,7 @@ describe('add', () => {
106107
port.toString(),
107108
]);
108109
const result = await testBinUtils.pkStdio(commands, {}, dataDir);
109-
expect(result.exitCode).toBe(64);
110+
expect(result.exitCode).toBe(sysexits.USAGE);
110111

111112
// Checking if node was added.
112113
const res = await polykeyAgent.nodeManager.getNode(validNodeId);

0 commit comments

Comments
 (0)