From fbd1c10e730e7b9422e3d23a1ec2c0a61eddf7e5 Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Thu, 21 Sep 2023 17:21:01 +0200 Subject: [PATCH 1/2] misc: Bump version to v0.48.0-beta --- scripts/build_npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index a7d7c4c..926ba0f 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -32,7 +32,7 @@ await build({ // package.json properties name: "lago-javascript-client", sideEffects: false, - version: "v0.45.0-beta", + version: "v0.48.0-beta", description: "Lago JavaScript API Client", repository: { "type": "git", From fda7f32915ed98c558779f6059c33bf8b18b1a25 Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Thu, 21 Sep 2023 17:25:07 +0200 Subject: [PATCH 2/2] Fix specs --- tests/applied_add_on.test.ts | 44 ------------------------------------ 1 file changed, 44 deletions(-) delete mode 100644 tests/applied_add_on.test.ts diff --git a/tests/applied_add_on.test.ts b/tests/applied_add_on.test.ts deleted file mode 100644 index f920023..0000000 --- a/tests/applied_add_on.test.ts +++ /dev/null @@ -1,44 +0,0 @@ -import type { AppliedAddOnInput } from "../mod.ts"; -import { lagoTest, unprocessableErrorResponse } from "./utils.ts"; - -const appliedAddOn = { - applied_add_on: { - external_customer_id: "lago_test_test", - add_on_code: "add_on_code", - }, -} as const satisfies AppliedAddOnInput; - -Deno.test("Successfully sent apply coupon responds with 2xx", async (t) => { - await lagoTest({ - t, - testType: "200", - route: "POST@/api/v1/applied_add_ons", - clientPath: ["appliedAddOns", "applyAddOn"], - inputParams: [appliedAddOn], - responseObject: { - applied_add_on: { - lago_id: "lago_id", - lago_add_on_id: "lago_add_on_id", - add_on_code: "add_on_code", - external_customer_id: "testtest", - lago_customer_id: "lago_test_test", - amount_cents: 123, - amount_currency: "EUR", - created_at: "2022-04-29T08:59:51Z", - }, - }, - status: 200, - }); -}); - -Deno.test("Status code is not 2xx", async (t) => { - await lagoTest({ - t, - testType: "error", - route: "POST@/api/v1/applied_add_ons", - clientPath: ["appliedAddOns", "applyAddOn"], - inputParams: [appliedAddOn], - responseObject: unprocessableErrorResponse, - status: 422, - }); -});