Skip to content

Commit

Permalink
chore: fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarpl committed Oct 27, 2023
1 parent a5401fe commit 2a0b344
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/job-worker/src/ingest/__tests__/updateNext.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part1' }) }),
false
)
Expand All @@ -370,7 +370,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part4' }) }),
false
)
Expand All @@ -392,7 +392,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part1' }) }),
false
)
Expand All @@ -419,7 +419,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part4' }) }),
false
)
Expand All @@ -432,7 +432,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part4' }) }),
false
)
Expand All @@ -445,7 +445,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part9' }) }),
false
)
Expand All @@ -458,7 +458,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part9' }) }),
false
)
Expand Down Expand Up @@ -495,7 +495,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part1' }) }),
false
)
Expand Down Expand Up @@ -532,7 +532,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
context,
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'mock_part1' }) }),
false
)
Expand Down Expand Up @@ -606,7 +606,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
expect.objectContaining({}),
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
expect.objectContaining({ part: expect.objectContaining({ _id: 'tmp_part_1' }) }),
false
)
Expand All @@ -624,7 +624,7 @@ describe('ensureNextPartIsValid', () => {
expect(setNextPartMock).toHaveBeenCalledTimes(1)
expect(setNextPartMock).toHaveBeenCalledWith(
expect.objectContaining({}),
expect.objectContaining({ PlaylistId: rundownPlaylistId }),
expect.objectContaining({ playlistId: rundownPlaylistId }),
null,
false
)
Expand Down

0 comments on commit 2a0b344

Please sign in to comment.