@zondax/zemu
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -46,4 +46,2 @@ "use strict"; | ||
var Resolve = require("path").resolve; | ||
var EmuContainer = /*#__PURE__*/function () { | ||
@@ -54,3 +52,3 @@ function EmuContainer(elfPath, image) { | ||
this.image = image; | ||
this.elfPath = Resolve(elfPath); | ||
this.elfPath = elfPath; | ||
} | ||
@@ -57,0 +55,0 @@ |
@@ -84,7 +84,7 @@ "use strict"; | ||
if (elfPath == null) { | ||
if (this.elfPath == null) { | ||
throw new Error("elfPath cannot be null!"); | ||
} | ||
this.emuContainer = new _emuContainer["default"](elfPath, DEFAULT_EMU_IMG); | ||
this.emuContainer = new _emuContainer["default"](this.elfPath, DEFAULT_EMU_IMG); | ||
} | ||
@@ -91,0 +91,0 @@ |
{ | ||
"name": "@zondax/zemu", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Zemu Testing Framework", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -22,3 +22,2 @@ /** ****************************************************************************** | ||
export const DEFAULT_VNC_PORT = "8001"; | ||
const Resolve = require("path").resolve; | ||
@@ -29,3 +28,3 @@ export default class EmuContainer { | ||
this.image = image; | ||
this.elfPath = Resolve(elfPath); | ||
this.elfPath = elfPath; | ||
} | ||
@@ -32,0 +31,0 @@ |
@@ -57,7 +57,7 @@ /** ****************************************************************************** | ||
if (elfPath == null) { | ||
if (this.elfPath == null) { | ||
throw new Error("elfPath cannot be null!"); | ||
} | ||
this.emuContainer = new EmuContainer(elfPath, DEFAULT_EMU_IMG); | ||
this.emuContainer = new EmuContainer(this.elfPath, DEFAULT_EMU_IMG); | ||
} | ||
@@ -64,0 +64,0 @@ |
@@ -18,5 +18,6 @@ /** ****************************************************************************** | ||
import Zemu from "../src"; | ||
const Resolve = require("path").resolve; | ||
jest.setTimeout(10000); | ||
const DEMO_APP_PATH = "bin/demoApp"; | ||
const DEMO_APP_PATH = Resolve("bin/demoApp"); | ||
@@ -23,0 +24,0 @@ test("Zemu-Start&Close", async () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
535169
1074