Update blank metadata values from null to undefined to match Chrome

This commit is contained in:
hensm
2019-07-14 09:46:05 +01:00
parent f2907cdc15
commit a62cb01e97
10 changed files with 84 additions and 84 deletions

View File

@@ -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);
});
});