diff --git a/src/services/shellService.js b/src/services/shellService.js index b4c7f18..6fde68e 100644 --- a/src/services/shellService.js +++ b/src/services/shellService.js @@ -20,20 +20,20 @@ export class ShellService { var child = spawn(cmd, args, { cwd: workingDir, detached: true, - //stdio: ["ignore", "ignore", "ignore"], + stdio: ["ignore", "ignore", "ignore"], }); - child.stdout.on("data", (data) => { - console.log(`stdout: ${data}`); - }); + // child.stdout.on("data", (data) => { + // console.log(`stdout: ${data}`); + // }); - child.stderr.on("data", (data) => { - console.error(`stderr: ${data}`); - }); + // child.stderr.on("data", (data) => { + // console.error(`stderr: ${data}`); + // }); - child.on("close", (code) => { - console.log(`child process exited with code ${code}`); - }); + // child.on("close", (code) => { + // console.log(`child process exited with code ${code}`); + // }); child.unref(); diff --git a/src/ui/installMenu.js b/src/ui/installMenu.js index 5b99fee..9902a2b 100644 --- a/src/ui/installMenu.js +++ b/src/ui/installMenu.js @@ -60,6 +60,7 @@ export class InstallMenu { this.ui.showInfoMessage( "You are about to:\n" + " - Uninstall the Codex application\n" + + " - Delete your Codex ethereum keys\n" + " - Delete the data stored in your Codex node\n" + " - Delete the log files of your Codex node", ); diff --git a/src/ui/installMenu.test.js b/src/ui/installMenu.test.js index 620edcb..4a0cf41 100644 --- a/src/ui/installMenu.test.js +++ b/src/ui/installMenu.test.js @@ -111,6 +111,7 @@ describe("InstallMenu", () => { expect(mockUiService.showInfoMessage).toHaveBeenCalledWith( "You are about to:\n" + " - Uninstall the Codex application\n" + + " - Delete your Codex ethereum keys\n" + " - Delete the data stored in your Codex node\n" + " - Delete the log files of your Codex node", ); diff --git a/src/ui/mainMenu.js b/src/ui/mainMenu.js index 8dcb365..19de272 100644 --- a/src/ui/mainMenu.js +++ b/src/ui/mainMenu.js @@ -23,8 +23,6 @@ export class MainMenu { this.ui.showLogo(); await this.loop.showLoop(); - - this.ui.showInfoMessage("K-THX-BYE"); }; promptMainMenu = async () => { diff --git a/src/ui/mainMenu.test.js b/src/ui/mainMenu.test.js index 1f717e9..009f739 100644 --- a/src/ui/mainMenu.test.js +++ b/src/ui/mainMenu.test.js @@ -45,12 +45,6 @@ describe("mainmenu", () => { expect(mockMenuLoop.showLoop).toHaveBeenCalled(); }); - - it("shows the exit message after the menu loop", async () => { - await mainmenu.show(); - - expect(mockUiService.showInfoMessage).toHaveBeenCalledWith("K-THX-BYE"); - }); }); describe("promptMainMenu", () => {