From 19dac869553e5c7a8019371ea793397b60275d1f Mon Sep 17 00:00:00 2001 From: Nina Ceban Ciocanu Date: Tue, 29 Oct 2024 17:39:23 +0200 Subject: [PATCH] fix tests (#1205) Co-authored-by: Nina Ciocanu --- .../components/StreamingMedia/createMediaEventManager.spec.js | 1 + .../components/StreamingMedia/createTrackMediaSession.spec.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/specs/components/StreamingMedia/createMediaEventManager.spec.js b/test/unit/specs/components/StreamingMedia/createMediaEventManager.spec.js index 5bfb0a1f5..b560bdf0c 100644 --- a/test/unit/specs/components/StreamingMedia/createMediaEventManager.spec.js +++ b/test/unit/specs/components/StreamingMedia/createMediaEventManager.spec.js @@ -130,6 +130,7 @@ describe("StreamingMedia::createMediaEventManager", () => { }); expect(eventManager.sendEvent).toHaveBeenCalledWith(event, { mediaOptions, + edgeConfigOverrides: undefined, }); }); diff --git a/test/unit/specs/components/StreamingMedia/createTrackMediaSession.spec.js b/test/unit/specs/components/StreamingMedia/createTrackMediaSession.spec.js index 4e2ee061a..86e642120 100644 --- a/test/unit/specs/components/StreamingMedia/createTrackMediaSession.spec.js +++ b/test/unit/specs/components/StreamingMedia/createTrackMediaSession.spec.js @@ -12,7 +12,7 @@ governing permissions and limitations under the License. import createTrackMediaSession from "../../../../../src/components/StreamingMedia/createTrackMediaSession.js"; import PlaybackState from "../../../../../src/components/StreamingMedia/constants/playbackState.js"; -describe("createTrackMediaEvent", () => { +describe("createTrackMediaSession", () => { let trackMediaSession; let mediaEventManager; let mediaSessionCacheManager; @@ -96,6 +96,7 @@ describe("createTrackMediaEvent", () => { getPlayerDetails, legacy: false, }, + edgeConfigOverrides: undefined, }); expect(mediaSessionCacheManager.storeSession).toHaveBeenCalledWith({