chore(coverage): add redundant code to test coverage threshold
This commit is contained in:
@@ -366,6 +366,18 @@ class User extends Base {
|
|||||||
return now.getTime() - sentAt.getTime() < fourHoursInMilliseconds;
|
return now.getTime() - sentAt.getTime() < fourHoursInMilliseconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toTestTestCoverage() {
|
||||||
|
if (!this.resetPasswordTokenSentAt) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const sentAt = new Date(this.resetPasswordTokenSentAt);
|
||||||
|
const now = new Date();
|
||||||
|
const fourHoursInMilliseconds = 1000 * 60 * 60 * 4;
|
||||||
|
|
||||||
|
return now.getTime() - sentAt.getTime() < fourHoursInMilliseconds;
|
||||||
|
}
|
||||||
|
|
||||||
async sendInvitationEmail() {
|
async sendInvitationEmail() {
|
||||||
await this.generateInvitationToken();
|
await this.generateInvitationToken();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user