Simplify build scripts and implement preliminary tests

This commit is contained in:
hensm
2018-06-11 03:42:04 +01:00
parent 7cb626841f
commit f20f96cf10
19 changed files with 6021 additions and 11 deletions

19
test/spec/chrome.spec.js Normal file
View File

@@ -0,0 +1,19 @@
"use strict";
const { create, destroy } = require("../driver");
describe("chrome", () => {
beforeEach(create.bind(this));
afterEach(destroy.bind(this));
it("should exist", async () => {
const chrome = await this.driver.executeScript(() => {
return window.chrome;
});
expect(typeof chrome).toBeDefined();
expect(typeof chrome.cast).toBeDefined();
expect(typeof chrome.cast.media).toBeDefined();
});
});