From de891f4a83cc6ca73ea54209d7b8956119f56e85 Mon Sep 17 00:00:00 2001 From: Hunain Bin Sajid Date: Thu, 12 Sep 2024 18:23:54 +0500 Subject: [PATCH] testing check failure --- src/client.test.ts | 3 +-- src/client.ts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client.test.ts b/src/client.test.ts index 98cb358..b100357 100644 --- a/src/client.test.ts +++ b/src/client.test.ts @@ -66,8 +66,7 @@ describe("Check installation", () => { extension.postExtension(); const response = await client.isExtensionInstalled(); - // extension.extensionId - expect(response).toEqual(1); + expect(response).toEqual(extension.extensionId); }); test("Should return false if not installed", async () => { diff --git a/src/client.ts b/src/client.ts index 074af35..047a63c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -335,9 +335,8 @@ export class ExtensionClient { * * @see Template for [Vendor Loaded JSON](https://api.npoint.io/52639f849bb31823a8c0) */ - configureVendor = async (payload?: ConfigureVendorArgs): Promise => { - this.sendMessage("/signify/configure-vendor", { payload }); - return "str"; + configureVendor = async (payload?: ConfigureVendorArgs): Promise => { + return this.sendMessage("/signify/configure-vendor", { payload }); }; /**