Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jun 27, 2023
1 parent 765a1b7 commit dce2bce
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Accessor, Expectation, ExpectedPackage, literal, LoggerInstance } from '@sofie-package-manager/api'
import * as NRK from '..'
import {
ActivePlaylist,
ActiveRundown,
ExpectedPackageWrap,
PackageContainers,
wrapExpectedPackage,
} from '../../../packageManager'
PackageManagerActivePlaylist,
PackageManagerActiveRundown,
// eslint-disable-next-line node/no-extraneous-import
} from '@sofie-automation/shared-lib/dist/package-manager/publications'
import * as NRK from '..'
import { ExpectedPackageWrap, PackageContainers, wrapExpectedPackage } from '../../../packageManager'
import { PackageManagerSettings } from '../../../generated/options'
import { protectString } from '@sofie-automation/server-core-integration'

describe('Generate expectations - NRK', () => {
test('Wrap package', () => {
Expand Down Expand Up @@ -195,22 +195,22 @@ function setup() {
} as any as LoggerInstance
const managerId = 'mockManager'
// const packageContainers: PackageContainers,
const activePlaylist: ActivePlaylist = {
_id: 'playlist',
const activePlaylist: PackageManagerActivePlaylist = {
_id: protectString('playlist'),
active: true,
rehearsal: false,
}
const activeRundowns: ActiveRundown[] = [
const activeRundowns: PackageManagerActiveRundown[] = [
{
_id: 'rundown0',
_id: protectString('rundown0'),
_rank: 0,
},
{
_id: 'rundown1',
_id: protectString('rundown1'),
_rank: 1,
},
{
_id: 'rundown2',
_id: protectString('rundown2'),
_rank: 2,
},
]
Expand Down Expand Up @@ -350,7 +350,7 @@ function wrap(
if (externalProps) {
// default:
wrapped.external = false
wrapped.playoutDeviceId = 'device0'
wrapped.playoutDeviceId = protectString('device0')

if (typeof externalProps === 'object') {
wrapped = {
Expand Down

0 comments on commit dce2bce

Please sign in to comment.