diff --git a/packages/signer/signer-btc/src/api/SignerBtcBuiilder.test.ts b/packages/signer/signer-btc/src/api/SignerBtcBuiilder.test.ts new file mode 100644 index 000000000..03940be3a --- /dev/null +++ b/packages/signer/signer-btc/src/api/SignerBtcBuiilder.test.ts @@ -0,0 +1,18 @@ +import { type DeviceManagementKit } from "@ledgerhq/device-management-kit"; + +import { SignerBtcBuilder } from "@api/SignerBtcBuilder"; + +describe("SignerBtcBuilder", () => { + const dmk: DeviceManagementKit = {} as DeviceManagementKit; + + test("should be an instance of SignerBtc", () => { + // GIVEN + const builder = new SignerBtcBuilder({ dmk, sessionId: "" }); + + // WHEN + builder.build(); + + // THEN + expect(builder).toBeInstanceOf(SignerBtcBuilder); + }); +}); diff --git a/packages/signer/signer-btc/src/api/SignerBtcBuilder.ts b/packages/signer/signer-btc/src/api/SignerBtcBuilder.ts index 53d9ff5e8..cd67b790b 100644 --- a/packages/signer/signer-btc/src/api/SignerBtcBuilder.ts +++ b/packages/signer/signer-btc/src/api/SignerBtcBuilder.ts @@ -20,8 +20,8 @@ type SignerBtcBuilderConstructorArgs = { * ``` */ export class SignerBtcBuilder { - private _dmk: DeviceManagementKit; - private _sessionId: DeviceSessionId; + private readonly _dmk: DeviceManagementKit; + private readonly _sessionId: DeviceSessionId; constructor({ dmk, sessionId }: SignerBtcBuilderConstructorArgs) { this._dmk = dmk; diff --git a/packages/signer/signer-btc/src/api/index.ts b/packages/signer/signer-btc/src/api/index.ts index 36e101c10..1122cc65e 100644 --- a/packages/signer/signer-btc/src/api/index.ts +++ b/packages/signer/signer-btc/src/api/index.ts @@ -1,4 +1,5 @@ export { type SignerBtc } from "./SignerBtc"; +export { SignerBtcBuilder } from "./SignerBtcBuilder"; export * from "@api/app-binder/GetExtendedPublicKeyDeviceActionTypes"; export type { SignMessageDAError,