mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Update blank metadata values from null to undefined to match Chrome
This commit is contained in:
@@ -4,16 +4,16 @@ describe("chrome.cast.media.PhotoMediaMetadata", () => {
|
||||
it("should have all properties", async () => {
|
||||
const photoMediaMetadata = new chrome.cast.media.PhotoMediaMetadata();
|
||||
|
||||
expect(photoMediaMetadata.artist).toBe(null);
|
||||
expect(photoMediaMetadata.creationDateTime).toBe(null);
|
||||
expect(photoMediaMetadata.height).toBe(null);
|
||||
expect(photoMediaMetadata.images).toBe(null);
|
||||
expect(photoMediaMetadata.latitude).toBe(null);
|
||||
expect(photoMediaMetadata.location).toBe(null);
|
||||
expect(photoMediaMetadata.longitude).toBe(null);
|
||||
expect(photoMediaMetadata.artist).toBe(undefined);
|
||||
expect(photoMediaMetadata.creationDateTime).toBe(undefined);
|
||||
expect(photoMediaMetadata.height).toBe(undefined);
|
||||
expect(photoMediaMetadata.images).toBe(undefined);
|
||||
expect(photoMediaMetadata.latitude).toBe(undefined);
|
||||
expect(photoMediaMetadata.location).toBe(undefined);
|
||||
expect(photoMediaMetadata.longitude).toBe(undefined);
|
||||
expect(photoMediaMetadata.metadataType).toBe(4);
|
||||
expect(photoMediaMetadata.title).toBe(null);
|
||||
expect(photoMediaMetadata.title).toBe(undefined);
|
||||
expect(photoMediaMetadata.type).toBe(4);
|
||||
expect(photoMediaMetadata.width).toBe(null);
|
||||
expect(photoMediaMetadata.width).toBe(undefined);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user