Skip to content

Commit

Permalink
fix: remaining tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 22, 2024
1 parent 3cdd24b commit dbd9ac5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cc/src/cc/BasicCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export class BasicCCReport extends BasicCC {
raw.payload[0] === 0xff
? 99
: parseMaybeNumber(raw.payload[0]);
validatePayload(currentValue != undefined);
validatePayload(currentValue !== undefined);

let targetValue: MaybeUnknown<number> | undefined;
let duration: Duration | undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ function createLazySendDataPayload(
__internalIsMockNode: true,
...node.encodingContext,
...node.securityManagers,
// The frame type is always singlecast because the controller sends it to the node
frameType: "singlecast",
});
// Store the command because assertReceivedHostMessage needs it
// @ts-expect-error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class ApplicationCommandRequest extends Message
{
sourceNodeId: nodeId,
...options.ctx,
frameType: this.frameType,
},
) as SinglecastCC<CommandClass>;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class BridgeApplicationCommandRequest extends Message
{
sourceNodeId,
...options.ctx,
frameType: this.frameType,
},
) as SinglecastCC<CommandClass>;
offset += commandLength;
Expand Down

0 comments on commit dbd9ac5

Please sign in to comment.