mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Simplify build scripts and implement preliminary tests
This commit is contained in:
19
test/spec/chrome.spec.js
Normal file
19
test/spec/chrome.spec.js
Normal 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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user