From 22989465538f64e86fe5ac0235e322133b95056c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 20 Aug 2019 02:46:41 +0400 Subject: Initial test application Signed-off-by: Valentin Popov --- test/index.spec.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/index.spec.ts (limited to 'test/index.spec.ts') diff --git a/test/index.spec.ts b/test/index.spec.ts new file mode 100644 index 0000000..c2d5208 --- /dev/null +++ b/test/index.spec.ts @@ -0,0 +1,18 @@ +import path from "path"; +// tslint:disable-next-line: no-implicit-dependencies +import { Application } from "spectron"; + +const applicationPath: string = path.join(__dirname, "application"); +const electronPath: string = path.join(__dirname, "application", "node_modules", ".bin", "electron"); + +describe("RendererReloader", () => { + it("start() / stop()", async () => { + const app: Application = new Application({ + args: [applicationPath], + path: electronPath, + }); + + await app.start(); + await app.stop(); + }); +}); -- cgit v1.2.3