mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-02 13:33:11 +00:00
Small fixes
This commit is contained in:
parent
0e2776f6a3
commit
79faa827af
@ -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();
|
||||
|
||||
|
||||
@ -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",
|
||||
);
|
||||
|
||||
@ -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",
|
||||
);
|
||||
|
||||
@ -23,8 +23,6 @@ export class MainMenu {
|
||||
this.ui.showLogo();
|
||||
|
||||
await this.loop.showLoop();
|
||||
|
||||
this.ui.showInfoMessage("K-THX-BYE");
|
||||
};
|
||||
|
||||
promptMainMenu = async () => {
|
||||
|
||||
@ -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", () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user