Skip to content

Commit a4d3526

Browse files
committed
fix: cli test exit code for create-user failure
Corrects the expected exit code for the `create-user` command when missing required fields. The previous exit code was incorrect, leading to inaccurate test results.
1 parent 1c6bae9 commit a4d3526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/git-proxy-cli/test/testCli.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,9 @@ describe('test git-proxy-cli', function () {
541541
await helper.runCli(`npx -- @finos/git-proxy-cli login --username admin --password admin`);
542542

543543
const cli = `npx -- @finos/git-proxy-cli create-user --username newuser --email [email protected] --gitAccount newgit`;
544-
const expectedExitCode = 4;
544+
const expectedExitCode = 1;
545545
const expectedMessages = null;
546-
const expectedErrorMessages = ['Error: Create User: Missing required fields'];
546+
const expectedErrorMessages = ['Missing required argument: password'];
547547
await helper.runCli(cli, expectedExitCode, expectedMessages, expectedErrorMessages);
548548
} finally {
549549
await helper.closeServer(service.httpServer);

0 commit comments

Comments
 (0)