From 60c4334ce05a81fddd63cdd1e5ea149d70c4eeba Mon Sep 17 00:00:00 2001 From: Baud Date: Wed, 18 Oct 2023 16:49:24 +0100 Subject: [PATCH] fix: Failing tests --- .../playout/abPlayback/__tests__/abPlayback.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/job-worker/src/playout/abPlayback/__tests__/abPlayback.spec.ts b/packages/job-worker/src/playout/abPlayback/__tests__/abPlayback.spec.ts index 5cfd92f71e..9e8542f10a 100644 --- a/packages/job-worker/src/playout/abPlayback/__tests__/abPlayback.spec.ts +++ b/packages/job-worker/src/playout/abPlayback/__tests__/abPlayback.spec.ts @@ -179,9 +179,9 @@ describe('resolveMediaPlayers', () => { expect(mockGetPieceSessionId).toHaveBeenCalledTimes(3) expect(mockGetObjectSessionId).toHaveBeenCalledTimes(0) - expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(1, pieces[0], 'clip_abc') - expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(2, pieces[1], 'clip_def') - expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(3, pieces[2], 'clip_ghi') + expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(1, pieces[0].instance, 'clip_abc') + expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(2, pieces[1].instance, 'clip_def') + expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(3, pieces[2].instance, 'clip_ghi') }) test('basic pieces - players with number and string Ids', () => { @@ -215,9 +215,9 @@ describe('resolveMediaPlayers', () => { expect(mockGetPieceSessionId).toHaveBeenCalledTimes(3) expect(mockGetObjectSessionId).toHaveBeenCalledTimes(0) - expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(1, pieces[0], 'clip_abc') - expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(2, pieces[1], 'clip_def') - expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(3, pieces[2], 'clip_ghi') + expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(1, pieces[0].instance, 'clip_abc') + expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(2, pieces[1].instance, 'clip_def') + expect(mockGetPieceSessionId).toHaveBeenNthCalledWith(3, pieces[2].instance, 'clip_ghi') }) test('Multiple pieces same id', () => {