Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Dec 16, 2019
1 parent 06ec5a5 commit 6048802
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"dependencies": {
"exit-hook": "^2.0.0",
"nanotimer": "^0.3.15",
"threadedclass": "https://github.com/Julusian/threadedClass.git#dist/feat/node12-types",
"threadedclass": "^0.7.0",
"tslib": "^1.10.0",
"wavefile": "^8.4.4"
},
Expand Down
5 changes: 4 additions & 1 deletion src/__tests__/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export function createEmptyState () {
stingers: 1,
superSources: 2,
// talkbackOverSDI: 0,
multiViewers: 255,
downstreamKeyers: 4,
cameraControl: true,
advancedChromaKeyers: true
Expand All @@ -64,6 +63,10 @@ export function createEmptyState () {
keyCount: 4
}
]
state.info.multiviewer = {
count: 255,
windowCount: 16
}

return state
}
2 changes: 1 addition & 1 deletion src/commands/DeviceProfile/topologyCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class TopologyCommand extends DeserializedCommand<AtemCapabilites> {
cameraControl: rawCommand.readUInt8(17) === 1,

// Note: these are defined below as they can overflow in older firmwares
advancedChromaKeyers: false,
advancedChromaKeyers: false
}

// in 7.4?
Expand Down
1 change: 1 addition & 0 deletions src/commands/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ describe('Commands v7.2', () => {
switch (testCase.name) {
// Temporarily ignore the failures
case '_top': // New properties not implemented in LibAtem yet
case '_MvC': // Not all properties parsed
case 'FTSU': // Unkown props getting overwritten by generator: https://github.com/LibAtem/LibAtem/blob/master/LibAtem/Commands/DataTransfer/DataTransferDownloadRequestCommand.cs
continue
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/__tests__/v8.0.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('Commands v8.0', () => {
switch (testCase.name) {
// Not parsed
case '_top': // New properties not implemented in LibAtem yet
case '_MvC': // Not parsed
case '_MvC': // Not all properties parsed
case 'AMIP': // portType max value
continue
}
Expand Down
11 changes: 6 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5165,12 +5165,13 @@ text-extensions@^1.0.0:
resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26"
integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==

"threadedclass@https://github.com/Julusian/threadedClass.git#dist/feat/node12-types":
version "0.0.0-develop"
resolved "https://github.com/Julusian/threadedClass.git#9a40b3357db293b8a8429526a4bf7d8d4de8a10f"
threadedclass@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/threadedclass/-/threadedclass-0.7.0.tgz#16d970211f930b5759fae83a4cde78563b0b5104"
integrity sha512-at4Ouv4JSbFz5hX5XnhjkukqOz+J086BHPXT3P6lD64rhYgzbOdWruyj8AgE7xfeh3Wd8nl9yUJiZ4ryoD9IFA==
dependencies:
callsites "^3.1.0"
tslib "^1.9.3"
tslib "^1.10.0"

throat@^4.0.0:
version "4.1.0"
Expand Down Expand Up @@ -5338,7 +5339,7 @@ tslib@1.9.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
integrity sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==

tslib@^1.10.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.3:
tslib@^1.10.0, tslib@^1.8.0, tslib@^1.8.1:
version "1.10.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
Expand Down

0 comments on commit 6048802

Please sign in to comment.