Unit tests added

This commit is contained in:
Piotr Pekala
2019-09-25 04:37:25 -07:00
parent d594fc0a36
commit 98c079175f
5 changed files with 20 additions and 15 deletions

View File

@ -28,10 +28,7 @@ export class NodesMenuComponent {
async startConsoleForAllNodes() {
if (this.electronService.isElectronApp) {
let consoleCommand = this.settingsService.get<string>('console_command');
if(consoleCommand === undefined) {
consoleCommand = `putty.exe -telnet \%h \%p -wt \"\%d\" -gns3 5 -skin 4`;
}
let consoleCommand = this.settingsService.get<string>('console_command') ? this.settingsService.get<string>('console_command') : this.nodeService.getDefaultCommand();
let nodes = this.nodesDataSource.getItems();
for(var node of nodes) {