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", 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, - }); -});