mock os instead of system

This commit is contained in:
Bryan MacFarlane
2020-02-09 18:22:24 -05:00
parent 79b62adb05
commit 241a335117
3 changed files with 20 additions and 27 deletions

View File

@ -1,4 +1,4 @@
import * as os from 'os';
let os = require('os');
export function getPlatform(): string {
// darwin and linux match already
@ -25,9 +25,9 @@ export function getArch(): string {
case 'x64':
arch = 'amd64';
break;
case 'ppc':
arch = 'ppc64';
break;
// case 'ppc':
// arch = 'ppc64';
// break;
case 'x32':
arch = '386';
break;