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

@@ -16,17 +16,19 @@ describe("chrome.cast.ApiConfig", () => {
it("should have expected assigned properties", async () => {
const sessionRequest = new chrome.cast.SessionRequest(
chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID);
chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
);
function sessionListener () {}
function receiverListener () {}
function sessionListener() {}
function receiverListener() {}
const apiConfig = new chrome.cast.ApiConfig(
sessionRequest
, sessionListener
, receiverListener
, chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED
, chrome.cast.DefaultActionPolicy.CAST_THIS_TAB);
sessionRequest,
sessionListener,
receiverListener,
chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
chrome.cast.DefaultActionPolicy.CAST_THIS_TAB
);
expect(typeof apiConfig.sessionListener).toBe("function");
expect(typeof apiConfig.receiverListener).toBe("function");