fixing combined interval stuff

This commit is contained in:
John Yeo
2025-08-16 07:17:52 -07:00
parent f3ef6e1596
commit 42c3e73334
136 changed files with 3170 additions and 2043 deletions

View File

@@ -13,7 +13,7 @@ import Stripe from "stripe";
import { DrizzleCli } from "@/db/initDrizzle.js";
import { setupBefore } from "tests/before.js";
import { createProducts } from "tests/utils/productUtils.js";
import { addPrefixToProducts, runAttachTest } from "../utils.js";
import { addPrefixToProducts } from "../utils.js";
import { constructProduct } from "@/utils/scriptUtils/createTestProducts.js";
import { constructArrearItem } from "@/utils/scriptUtils/constructItem.js";
import { TestFeature } from "tests/setup/v2Features.js";
@@ -25,7 +25,7 @@ import { advanceTestClock } from "tests/utils/stripeUtils.js";
import { addHours, addMonths, addWeeks } from "date-fns";
import { hoursToFinalizeInvoice } from "tests/utils/constants.js";
import { getExpectedInvoiceTotal } from "tests/utils/expectUtils/expectInvoiceUtils.js";
import { attachAndExpectCorrect } from "tests/utils/expectUtils/expectAttach.js";
export let pro = constructProduct({
items: [constructArrearItem({ featureId: TestFeature.Words })],
type: "pro",
@@ -78,7 +78,7 @@ describe(`${chalk.yellowBright(`${testCase}: Testing attach with new version`)}`
});
it("should attach pro product", async function () {
await runAttachTest({
await attachAndExpectCorrect({
autumn,
customerId,
product: pro,