diff options
author | Valentin Popov <info@valentineus.link> | 2019-08-20 01:46:41 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2019-08-20 01:46:41 +0300 |
commit | 22989465538f64e86fe5ac0235e322133b95056c (patch) | |
tree | 7c4f1f92310562e8087e3314dc2beac4661b3be1 /test/index.spec.ts | |
parent | a6b4bc15ebcfc3aa358fcfc95967da56381f0603 (diff) | |
download | electron-hot-reload-22989465538f64e86fe5ac0235e322133b95056c.tar.xz electron-hot-reload-22989465538f64e86fe5ac0235e322133b95056c.zip |
Initial test application
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'test/index.spec.ts')
-rw-r--r-- | test/index.spec.ts | 18 |
1 files changed, 18 insertions, 0 deletions
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(); + }); +}); |