feat: 🎸 bun tests

This commit is contained in:
amianthus
2025-10-27 14:13:12 +00:00
parent 2311378208
commit e66f9acc4e
28 changed files with 28 additions and 28 deletions

View File

@@ -39,7 +39,7 @@ describe(`${chalk.yellowBright(`advanced/${testCase}: ensure default trials are
const curUnix = Math.floor(new Date().getTime() / 1000);
before(async function () {
beforeAll(async function () {
await setupBefore(this);
await setupDefaultTrialBefore({});
const { autumnJs } = this;

View File

@@ -35,7 +35,7 @@ describe(`${chalk.yellowBright(`advanced/${testCase}: ensure trial transitions i
const curUnix = Math.floor(new Date().getTime() / 1000);
before(async function () {
beforeAll(async function () {
await setupBefore(this);
await setupDefaultTrialBefore({});
const { autumnJs } = this;

View File

@@ -35,7 +35,7 @@ describe(`${chalk.yellowBright(`advanced/${testCase}: ensure trials cancel with
const curUnix = Math.floor(new Date().getTime() / 1000);
before(async function () {
beforeAll(async function () {
await setupBefore(this);
await setupDefaultTrialBefore({});
const { autumnJs } = this;

View File

@@ -46,7 +46,7 @@ describe(`${chalk.yellowBright("cancel2: Testing cancel at period end (with usag
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -57,7 +57,7 @@ describe(`${chalk.yellowBright("cancel3: Cancelling free product")}`, () => {
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -60,7 +60,7 @@ describe(`${chalk.yellowBright("cancel4: Cancelling free add on product")}`, ()
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -29,7 +29,7 @@ describe(`${chalk.yellowBright("cancel1: Testing cancel for trial products")}`,
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -76,7 +76,7 @@ describe(`${chalk.yellowBright("mergedCancel1: Merged cancel")}`, () => {
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -66,7 +66,7 @@ describe(`${chalk.yellowBright("mergedCancel2: Testing cancel immediately")}`, (
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -68,7 +68,7 @@ describe(`${chalk.yellowBright("mergedCancel3: Testing cancel immediately")}`, (
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -76,7 +76,7 @@ describe(`${chalk.yellowBright("multiAttach1: Testing multi attach for trial pro
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -73,7 +73,7 @@ describe(`${chalk.yellowBright("multiAttach2: Testing multi attach for trial pro
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -63,7 +63,7 @@ describe(`${chalk.yellowBright("multiAttach3: Testing multi attach for trial pro
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -69,7 +69,7 @@ describe(`${chalk.yellowBright("multiAttach4: Testing multi attach for annual pr
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -56,7 +56,7 @@ describe(`${chalk.yellowBright("multiAttach5: Testing multi attach and get custo
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -58,7 +58,7 @@ describe(`${chalk.yellowBright("multiAttach6: Testing multi attach and get custo
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -50,7 +50,7 @@ describe(`${chalk.yellowBright("multiInvoice1: Testing multi attach through invo
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -31,7 +31,7 @@ describe(`${chalk.yellowBright("multiReward1: Testing multi attach with rewards"
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -33,7 +33,7 @@ describe(`${chalk.yellowBright("multiReward2: Testing multi attach with rewards
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -37,7 +37,7 @@ describe(`${chalk.yellowBright("multiReward3: Testing multi attach with rewards
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -56,7 +56,7 @@ describe(`${chalk.yellowBright("multiUpgrade1: Testing multi attach and upgrade"
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;

View File

@@ -55,7 +55,7 @@ describe(`${chalk.yellowBright("multiUpgrade2: Testing multi attach and update q
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -42,7 +42,7 @@ describe(`${chalk.yellowBright("multiSubInterval1: Should attach pro and pro ann
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -42,7 +42,7 @@ describe(`${chalk.yellowBright("multiSubInterval2: Should attach pro and pro ann
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -48,7 +48,7 @@ describe(`${chalk.yellowBright("multiSubInterval3: Should attach pro and pro ann
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -42,7 +42,7 @@ describe(`${chalk.yellowBright("interval1: Should upgrade from pro to pro annual
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -42,7 +42,7 @@ describe(`${chalk.yellowBright("interval2: Should upgrade from pro to pro annual
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;

View File

@@ -43,7 +43,7 @@ describe(`${chalk.yellowBright("interval3: Should upgrade from pro trial to prem
let org: Organization;
let env: AppEnv;
before(async function () {
beforeAll(async function () {
await setupBefore(this);
const { autumnJs } = this;
db = this.db;