mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
18 lines
465 B
JavaScript
18 lines
465 B
JavaScript
"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);
|
|
});
|
|
});
|