mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
21 lines
649 B
JavaScript
21 lines
649 B
JavaScript
"use strict";
|
|
|
|
describe("chrome.cast.media.VolumeRequest", () => {
|
|
it("should have all properties", async () => {
|
|
const volumeRequest = new chrome.cast.media.VolumeRequest();
|
|
|
|
expect(volumeRequest.customData).toBe(null);
|
|
expect(volumeRequest.volume).toBe(undefined);
|
|
});
|
|
|
|
it("should have expected assigned properties", async () => {
|
|
const volume = new chrome.cast.Volume(0.5, false);
|
|
const volumeRequest = new chrome.cast.media.VolumeRequest(volume);
|
|
|
|
expect(volumeRequest.volume).toEqual(jasmine.objectContaining({
|
|
level: 0.5
|
|
, muted: false
|
|
}));
|
|
});
|
|
});
|