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,18 @@
"use strict";
describe("chrome.cast.SenderApplication", () => {
it("should have all properties", async () => {
const senderApplication = new chrome.cast.SenderApplication();
expect(senderApplication.platform).toBe(undefined);
expect(senderApplication.url).toBe(null);
expect(senderApplication.packageId).toBe(null);
});
it("should have expected assigned properties", async () => {
const senderApplication = new chrome.cast.SenderApplication(
chrome.cast.SenderPlatform.CHROME);
expect(senderApplication.platform).toBe("chrome");
});
});