mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
18 lines
493 B
JavaScript
18 lines
493 B
JavaScript
"use strict";
|
|
|
|
describe("chrome.cast.Image", () => {
|
|
it("should have all properties", async () => {
|
|
const image = new chrome.cast.Image();
|
|
|
|
expect(typeof image.url).toBe("undefined");
|
|
expect(image.height).toBe(null);
|
|
expect(image.width).toBe(null);
|
|
});
|
|
|
|
it("should have expected assigned properties", async () => {
|
|
const image = new chrome.cast.Image("http://example.com");
|
|
|
|
expect(image.url).toBe("http://example.com");
|
|
});
|
|
});
|