style: format code for consistency and readability

This commit is contained in:
Jan K9f 2025-01-28 08:27:37 +01:00
parent 69d26e89b7
commit 386813c524
Signed by: jank
GPG key ID: 50620ADD22CD330B
44 changed files with 566 additions and 370 deletions

View file

@ -2,9 +2,14 @@
<form [formGroup]="loginForm">
<label for="username">Username</label>
<input type="text" id="username" autocomplete="username" formControlName="username">
<input
type="text"
id="username"
autocomplete="username"
formControlName="username"
/>
<label for="password">Password</label>
<input type="password" id="password" formControlName="password">
<input type="password" id="password" formControlName="password" />
<button (click)="submit()" type="submit">Login</button>
<button type="reset" (click)="reset()">Reset</button>
</form>

View file

@ -8,9 +8,8 @@ describe('TestComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [TestComponent]
})
.compileComponents();
imports: [TestComponent],
}).compileComponents();
fixture = TestBed.createComponent(TestComponent);
component = fixture.componentInstance;

View file

@ -6,7 +6,7 @@ import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
standalone: true,
imports: [ReactiveFormsModule],
templateUrl: './test.component.html',
styleUrl: './test.component.css'
styleUrl: './test.component.css',
})
export class TestComponent {
public loginForm!: FormGroup;
@ -19,8 +19,8 @@ export class TestComponent {
setUpLoginForm(): FormGroup {
return new FormGroup({
username: new FormControl("Jan"),
password: new FormControl('')
username: new FormControl('Jan'),
password: new FormControl(''),
});
}