From a0de0b5882dd46a898541a94183e5c1d1410ae77 Mon Sep 17 00:00:00 2001
From: andrej romanov <50377758+auumgn@users.noreply.github.com>
Date: Fri, 12 Jan 2024 16:51:31 +0200
Subject: [PATCH] fix test and lint
---
.../password/password-reset-finish.component.html | 9 ++++++++-
.../password/password-reset-finish.component.spec.ts | 2 ++
.../password/password-reset-finish.component.ts | 10 +++++-----
3 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/ui/src/app/account/password/password-reset-finish.component.html b/ui/src/app/account/password/password-reset-finish.component.html
index f91fb9a8a..86e29d069 100644
--- a/ui/src/app/account/password/password-reset-finish.component.html
+++ b/ui/src/app/account/password/password-reset-finish.component.html
@@ -49,7 +49,14 @@
Reset password
Your password has been reset. Please
- sign in.
+ sign in.
diff --git a/ui/src/app/account/password/password-reset-finish.component.spec.ts b/ui/src/app/account/password/password-reset-finish.component.spec.ts
index 7b8bbd274..c6bdfb4d6 100644
--- a/ui/src/app/account/password/password-reset-finish.component.spec.ts
+++ b/ui/src/app/account/password/password-reset-finish.component.spec.ts
@@ -1,6 +1,7 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PasswordResetFinishComponent } from './password-reset-finish.component';
+import { AppModule } from 'src/app/app.module';
describe('PasswordResetFinishComponent', () => {
let component: PasswordResetFinishComponent;
@@ -8,6 +9,7 @@ describe('PasswordResetFinishComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
+ imports: [AppModule],
declarations: [PasswordResetFinishComponent]
});
fixture = TestBed.createComponent(PasswordResetFinishComponent);
diff --git a/ui/src/app/account/password/password-reset-finish.component.ts b/ui/src/app/account/password/password-reset-finish.component.ts
index e5f4f473f..4133841e5 100644
--- a/ui/src/app/account/password/password-reset-finish.component.ts
+++ b/ui/src/app/account/password/password-reset-finish.component.ts
@@ -11,13 +11,13 @@ import { ActivatedRoute, Router } from '@angular/router'
export class PasswordResetFinishComponent implements OnInit, AfterViewInit {
doNotMatch: string | undefined
error: string | undefined
- keyMissing: boolean = false
success: string | undefined
key: string | undefined
- invalidKey: boolean = false
- expiredKey: boolean = false
- activationEmailResent: boolean = false
- showPasswordForm: boolean = false
+ invalidKey = false
+ keyMissing = false
+ expiredKey = false
+ activationEmailResent = false
+ showPasswordForm = false
passwordForm = this.fb.group({
newPassword: ['', [Validators.required, Validators.minLength(4), Validators.maxLength(50)]],