From ddc1be82298c75a63104d082a7e02cab3eb9c79b Mon Sep 17 00:00:00 2001 From: Gareth Hancock <64541249+GazHank@users.noreply.github.com> Date: Tue, 20 Jun 2023 17:59:32 +0100 Subject: [PATCH] Add friendlyName to mock Signed-off-by: Gareth Hancock <64541249+GazHank@users.noreply.github.com> --- lib/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.ts b/lib/index.ts index cedb871..a7a6482 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -20,6 +20,7 @@ export interface CreatePortOptions { manufacturer?: string vendorId?: string productId?: string + friendlyName?: string } let ports: { @@ -77,6 +78,7 @@ export const MockBinding: MockBindingInterface = { locationId: undefined, vendorId: optWithDefaults.vendorId, productId: optWithDefaults.productId, + friendlyName: undefined, }, } debug(serialNumber, 'created port', JSON.stringify({ path, opt: options }))