Skip to content

Commit 5e47cef

Browse files
committed
chore: fix lint
1 parent fdb3596 commit 5e47cef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/job-worker/src/blueprints/ingest/__tests__/MutableIngestSegmentImpl.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { protectString } from '@sofie-automation/corelib/dist/protectedString'
55
import { getSegmentId } from '../../../ingest/lib.js'
66
import { MutableIngestPartImpl } from '../MutableIngestPartImpl.js'
77
import { IngestPart, IngestSegment, SofieIngestSegment } from '@sofie-automation/blueprints-integration'
8-
import { SofieIngestDataCacheObjPart } from '@sofie-automation/corelib/dist/dataModel/SofieIngestDataCache'
8+
import {
9+
SofieIngestCacheType,
10+
SofieIngestDataCacheObjPart,
11+
} from '@sofie-automation/corelib/dist/dataModel/SofieIngestDataCache'
912

1013
describe('MutableIngestSegmentImpl', () => {
1114
function getBasicIngestSegment(): SofieIngestSegment<any> {
@@ -356,7 +359,8 @@ describe('MutableIngestSegmentImpl', () => {
356359
const expectedChanges = createNoChangesObject(expectedIngestSegment)
357360
pushAllPartsToChanges(expectedChanges, expectedIngestSegment)
358361
const generatedCacheObject = expectedChanges.changedCacheObjects.find(
359-
(o): o is SofieIngestDataCacheObjPart => o.type === 'part' && o.data.externalId === 'part1'
362+
(o): o is SofieIngestDataCacheObjPart =>
363+
o.type === SofieIngestCacheType.PART && o.data.externalId === 'part1'
360364
)
361365
expect(generatedCacheObject).toBeDefined()
362366
expect(generatedCacheObject?.data.rank).toBe(3)

0 commit comments

Comments
 (0)