test(user): write test for startTrialPeriod

This commit is contained in:
Ali BARIN
2024-11-14 15:11:20 +00:00
committed by Faruk AYDIN
parent 449b953401
commit 41622678b0
2 changed files with 17 additions and 2 deletions

View File

@@ -407,7 +407,7 @@ class User extends Base {
}
}
async startTrialPeriod() {
startTrialPeriod() {
this.trialExpiryDate = DateTime.now().plus({ days: 30 }).toISODate();
}
@@ -590,7 +590,7 @@ class User extends Base {
await this.generateHash();
if (appConfig.isCloud) {
await this.startTrialPeriod();
this.startTrialPeriod();
}
}