fix: lint

This commit is contained in:
2026-04-27 18:14:05 +02:00
parent f7e9a0650b
commit 27c196d652
3 changed files with 16 additions and 11 deletions
+1 -3
View File
@@ -1,7 +1,5 @@
{
"permissions": {
"allow": [
"Bash(npx tsc *)"
]
"allow": ["Bash(npx tsc *)"]
}
}
+13 -7
View File
@@ -173,7 +173,9 @@ describe('HomeComponent', (): void => {
it('should advance the portrait index after 125 ms', fakeAsync((): void => {
const zone = TestBed.inject(NgZone);
zone.runOutsideAngular((): void => { comp.showNextPortraitHighlight(); });
zone.runOutsideAngular((): void => {
comp.showNextPortraitHighlight();
});
tick(125);
expect(comp.currentPortraitHighlightIndex).toBe(1);
tick(125);
@@ -182,7 +184,9 @@ describe('HomeComponent', (): void => {
it('should reset isPortraitSwitching to false after 250 ms', fakeAsync((): void => {
const zone = TestBed.inject(NgZone);
zone.runOutsideAngular((): void => { comp.showNextPortraitHighlight(); });
zone.runOutsideAngular((): void => {
comp.showNextPortraitHighlight();
});
tick(250);
expect(comp.isPortraitSwitching).toBeFalse();
discardPeriodicTasks();
@@ -191,7 +195,9 @@ describe('HomeComponent', (): void => {
it('should wrap portrait index from the last position back to 0', fakeAsync((): void => {
comp.currentPortraitHighlightIndex = global.portraitHighlights.length - 1;
const zone = TestBed.inject(NgZone);
zone.runOutsideAngular((): void => { comp.showNextPortraitHighlight(); });
zone.runOutsideAngular((): void => {
comp.showNextPortraitHighlight();
});
tick(125);
expect(comp.currentPortraitHighlightIndex).toBe(0);
tick(125);
@@ -315,8 +321,8 @@ describe('HomeComponent', (): void => {
document.body.appendChild(aboutEl);
const el = fixture.nativeElement as HTMLElement;
const btn = Array.from(el.querySelectorAll('button')).find((b): boolean =>
(b.textContent ?? '').trim() === 'About me',
const btn = Array.from(el.querySelectorAll('button')).find(
(b): boolean => (b.textContent ?? '').trim() === 'About me',
);
btn?.click();
expect(scrollSpy).toHaveBeenCalled();
@@ -329,8 +335,8 @@ describe('HomeComponent', (): void => {
document.body.appendChild(projectsEl);
const el = fixture.nativeElement as HTMLElement;
const btn = Array.from(el.querySelectorAll('button')).find((b): boolean =>
(b.textContent ?? '').trim() === 'View projects',
const btn = Array.from(el.querySelectorAll('button')).find(
(b): boolean => (b.textContent ?? '').trim() === 'View projects',
);
btn?.click();
expect(scrollSpy).toHaveBeenCalled();
+2 -1
View File
@@ -177,7 +177,8 @@ describe('ImprintComponent', (): void => {
});
it('should complete 500 normalizeText calls within 20 ms', (): void => {
const input = 'Ulmenstra\u00DFe \u00F6sterreich \u00E4hnlich \u00FCberall \u00C4gypten \u00DCbung';
const input =
'Ulmenstra\u00DFe \u00F6sterreich \u00E4hnlich \u00FCberall \u00C4gypten \u00DCbung';
const start = performance.now();
for (let i = 0; i < 500; i++) {
comp.normalizeText(input);