feat: 🎸 bun tests
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user