feat: invoice checkout mode
This commit is contained in:
@@ -45,7 +45,7 @@ const testCase = "addOn1";
|
||||
|
||||
describe(`${chalk.yellowBright(`${testCase}: Testing free add on, and updating free add on`)}`, () => {
|
||||
let customerId = testCase;
|
||||
let autumn: AutumnInt = new AutumnInt({ version: APIVersion.v1_4 });
|
||||
let autumn: AutumnInt = new AutumnInt({ version: APIVersion.v1_2 });
|
||||
let testClockId: string;
|
||||
let db: DrizzleCli, org: Organization, env: AppEnv;
|
||||
let stripeCli: Stripe;
|
||||
@@ -112,7 +112,7 @@ describe(`${chalk.yellowBright(`${testCase}: Testing free add on, and updating f
|
||||
|
||||
const customer = await autumn.customers.get(customerId);
|
||||
|
||||
expect(customer.products.length).to.equal(2);
|
||||
expect(customer.products.length).to.equal(3);
|
||||
expectProductAttached({
|
||||
customer,
|
||||
product: addOn,
|
||||
@@ -124,7 +124,7 @@ describe(`${chalk.yellowBright(`${testCase}: Testing free add on, and updating f
|
||||
});
|
||||
|
||||
const customItems = replaceItems({
|
||||
items: pro.items,
|
||||
items: addOn.items,
|
||||
featureId: TestFeature.Messages,
|
||||
newItem: constructFeatureItem({
|
||||
featureId: TestFeature.Messages,
|
||||
@@ -149,7 +149,7 @@ describe(`${chalk.yellowBright(`${testCase}: Testing free add on, and updating f
|
||||
|
||||
const customer = await autumn.customers.get(customerId);
|
||||
|
||||
expect(customer.products.length).to.equal(2);
|
||||
expect(customer.products.length).to.equal(3);
|
||||
expectProductAttached({
|
||||
customer,
|
||||
product: addOn,
|
||||
|
||||
Reference in New Issue
Block a user