Small fixes

This commit is contained in:
thatben 2025-04-21 16:04:07 +02:00
parent 0e2776f6a3
commit 79faa827af
No known key found for this signature in database
GPG Key ID: 62C543548433D43E
5 changed files with 12 additions and 18 deletions

View File

@ -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();

View File

@ -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",
);

View File

@ -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",
);

View File

@ -23,8 +23,6 @@ export class MainMenu {
this.ui.showLogo();
await this.loop.showLoop();
this.ui.showInfoMessage("K-THX-BYE");
};
promptMainMenu = async () => {

View File

@ -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", () => {