Add prettier and re-format .js files

This commit is contained in:
hensm
2021-08-31 07:59:58 +01:00
parent 9339b1a306
commit d6ca1325dc
38 changed files with 908 additions and 13254 deletions

View File

@@ -15,15 +15,20 @@ describe("chrome.cast.Receiver", () => {
it("should have expected assigned properties", async () => {
const receiver = new chrome.cast.Receiver(
"testLabel"
, "testFriendlyName"
, [ chrome.cast.Capability.VIDEO_OUT
, chrome.cast.Capability.AUDIO_OUT ]
, new chrome.cast.Volume(1, false));
"testLabel",
"testFriendlyName",
[
chrome.cast.Capability.VIDEO_OUT,
chrome.cast.Capability.AUDIO_OUT
],
new chrome.cast.Volume(1, false)
);
expect(receiver.capabilities).toEqual([ "video_out", "audio_out" ]);
expect(receiver.capabilities).toEqual(["video_out", "audio_out"]);
expect(receiver.friendlyName).toBe("testFriendlyName");
expect(receiver.label).toBe("testLabel");
expect(receiver.volume).toEqual(jasmine.objectContaining({ level: 1, muted: false }));
expect(receiver.volume).toEqual(
jasmine.objectContaining({ level: 1, muted: false })
);
});
});