Implement blank file tests + fix shim

This commit is contained in:
hensm
2019-01-12 10:12:10 +00:00
parent 839ea81838
commit 45319fe771
8 changed files with 141 additions and 30 deletions

View File

@@ -0,0 +1,17 @@
"use strict";
describe("chrome.cast.Volume", () => {
it("should have all properties", async () => {
const volume = new chrome.cast.Volume();
expect(volume.level).toBe(null);
expect(volume.muted).toBe(null);
});
it("should have expected assigned properties", async () => {
const volume = new chrome.cast.Volume(0.5, false);
expect(volume.level).toBe(0.5);
expect(volume.muted).toBe(false);
});
});