Skip to content

Commit 6d0a484

Browse files
committed
chore: fix failing tests
1 parent 6ca9ad9 commit 6d0a484

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

packages/corelib/src/dataModel/Piece.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export interface PieceGeneric extends Omit<IBlueprintPieceGeneric, 'content'> {
5353
timelineObjectsString: PieceTimelineObjectsBlob
5454
}
5555
export interface Piece
56-
extends PieceGeneric, Omit<IBlueprintPieceDB, '_id' | 'content' | 'userEditOperations' | 'userEditProperties'> {
56+
extends PieceGeneric,
57+
Omit<IBlueprintPieceDB, '_id' | 'content' | 'userEditOperations' | 'userEditProperties'> {
5758
/** Timeline enabler. When the piece should be active on the timeline. */
5859
enable: {
5960
start: number | 'now' // TODO - now will be removed from this eventually, but as it is not an acceptable value 99% of the time, that is not really breaking

packages/live-status-gateway-api/scripts/generate-schema-types.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const parser = new Parser()
6464
const asyncApiDoc = await fromFile(parser, 'src/generated/asyncapi.yaml').parse()
6565
if (!asyncApiDoc.document) {
6666
// Ignore the expected legacy version error
67-
const filteredDiagnostics = asyncApiDoc.diagnostics.filter((d) => d.code !== 'asyncapi-latest-version')
67+
//const filteredDiagnostics = asyncApiDoc.diagnostics.filter((d) => d.code !== 'asyncapi-latest-version')
6868

6969
console.error('No document was produced from the asyncapi parser')
7070
console.error(JSON.stringify(asyncApiDoc.diagnostics, null, 2))

packages/live-status-gateway/src/topics/__tests__/activePlaylist.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { DBSegment } from '@sofie-automation/corelib/dist/dataModel/Segment'
1717
import { CountdownType } from '@sofie-automation/blueprints-integration'
1818
import {
1919
ActivePlaylistEvent,
20-
RundownPlaylistTimingMode,
20+
ActivePlaylistTimingMode,
2121
SegmentCountdownType,
2222
} from '@sofie-automation/live-status-gateway-api'
2323

@@ -60,7 +60,7 @@ describe('ActivePlaylistTopic', () => {
6060
rundownIds: unprotectStringArray(playlist.rundownIdsInOrder),
6161
publicData: undefined,
6262
timing: {
63-
timingMode: RundownPlaylistTimingMode.NONE,
63+
timingMode: ActivePlaylistTimingMode.NONE,
6464
},
6565
quickLoop: undefined,
6666
}
@@ -161,7 +161,7 @@ describe('ActivePlaylistTopic', () => {
161161
rundownIds: unprotectStringArray(playlist.rundownIdsInOrder),
162162
publicData: { a: 'b' },
163163
timing: {
164-
timingMode: RundownPlaylistTimingMode.NONE,
164+
timingMode: ActivePlaylistTimingMode.NONE,
165165
},
166166
quickLoop: undefined,
167167
}
@@ -267,7 +267,7 @@ describe('ActivePlaylistTopic', () => {
267267
rundownIds: unprotectStringArray(playlist.rundownIdsInOrder),
268268
publicData: { a: 'b' },
269269
timing: {
270-
timingMode: RundownPlaylistTimingMode.NONE,
270+
timingMode: ActivePlaylistTimingMode.NONE,
271271
},
272272
quickLoop: undefined,
273273
}

packages/shared-lib/src/core/model/Timeline.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ export enum LookaheadMode {
133133
export interface BlueprintMappings extends TSR.Mappings {
134134
[layerName: string]: BlueprintMapping
135135
}
136-
export interface BlueprintMapping<
137-
TOptions extends { mappingType: string } | unknown = TSR.TSRMappingOptions,
138-
> extends TSR.Mapping<TOptions> {
136+
export interface BlueprintMapping<TOptions extends { mappingType: string } | unknown = TSR.TSRMappingOptions>
137+
extends TSR.Mapping<TOptions> {
139138
/** What method core should use to create lookahead objects for this layer */
140139
lookahead: LookaheadMode
141140
/** How many lookahead objects to create for this layer. Default = 1 */
@@ -147,10 +146,8 @@ export interface BlueprintMapping<
147146
export interface MappingsExt {
148147
[layerName: string]: MappingExt
149148
}
150-
export interface MappingExt<TOptions extends { mappingType: string } | unknown = TSR.TSRMappingOptions> extends Omit<
151-
BlueprintMapping<TOptions>,
152-
'deviceId'
153-
> {
149+
export interface MappingExt<TOptions extends { mappingType: string } | unknown = TSR.TSRMappingOptions>
150+
extends Omit<BlueprintMapping<TOptions>, 'deviceId'> {
154151
deviceId: PeripheralDeviceId
155152
}
156153
export interface RoutedMappings {

0 commit comments

Comments
 (0)