Skip to content

Commit

Permalink
fix: update bootloader test to new boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 25, 2024
1 parent 22be10e commit 7265950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/testing/src/MockController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class MockController {
this.serial.on("write", async (data) => {
// Execute hooks for inspecting the raw data first
for (const behavior of this.behaviors) {
if (await behavior.onHostData?.(this.host, this, data)) {
if (await behavior.onHostData?.(this, data)) {
return;
}
}
Expand Down Expand Up @@ -562,7 +562,6 @@ export interface MockControllerBehavior {
* Return `true` to indicate that the data has been handled and should not be processed further.
*/
onHostData?: (
host: ZWaveHost,
controller: MockController,
data: Buffer,
) => Promise<boolean | undefined> | boolean | undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integrationTest(

async customSetup(driver, mockController, mockNode) {
const sendBootloaderMessageInChunks: MockControllerBehavior = {
async onHostData(host, self, ctrl) {
async onHostData(self, ctrl) {
// if (
// ctrl.length === 1
// && (ctrl[0] === MessageHeaders.NAK || ctrl[0] === 0x32)
Expand Down

0 comments on commit 7265950

Please sign in to comment.