Skip to content

Commit 69bc857

Browse files
committed
lint
1 parent 02b8d88 commit 69bc857

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

e2e/url-navigation.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ test.describe('Pagination', () => {
287287
await page.click('.pagination button:has-text("2")');
288288

289289
// Wait for page 2 to be active (Angular routing/rendering delay)
290-
await expect(page.locator('.pagination .page-item:has(button:has-text("2"))')).toHaveClass(/active/, { timeout: 10000 });
290+
await expect(page.locator('.pagination .page-item:has(button:has-text("2"))')).toHaveClass(/active/, {
291+
timeout: 10000,
292+
});
291293
await page.waitForSelector('.article-preview', { timeout: 10000 });
292294

293295
// URL should show ?page=2

src/app/features/article/pages/home/home.component.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ <h1 class="logo-font">conduit</h1>
1212
<div class="feed-toggle">
1313
<ul class="nav nav-pills outline-active">
1414
<li class="nav-item" *ifAuthenticated="true">
15-
<a class="nav-link" [ngClass]="{ active: listConfig.type === 'feed' }" routerLink="/" [queryParams]="{ feed: 'following' }">
15+
<a
16+
class="nav-link"
17+
[ngClass]="{ active: listConfig.type === 'feed' }"
18+
routerLink="/"
19+
[queryParams]="{ feed: 'following' }"
20+
>
1621
Your Feed
1722
</a>
1823
</li>
@@ -33,7 +38,13 @@ <h1 class="logo-font">conduit</h1>
3338
</ul>
3439
</div>
3540

36-
<app-article-list [limit]="10" [config]="listConfig" [currentPage]="currentPage" [isFollowingFeed]="isFollowingFeed" (pageChange)="onPageChange($event)" />
41+
<app-article-list
42+
[limit]="10"
43+
[config]="listConfig"
44+
[currentPage]="currentPage"
45+
[isFollowingFeed]="isFollowingFeed"
46+
(pageChange)="onPageChange($event)"
47+
/>
3748
</div>
3849

3950
<div class="col-md-3" *rxLet="tags$; let tags">

src/app/features/article/pages/home/home.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ export default class HomeComponent implements OnInit {
3737
) {}
3838

3939
ngOnInit(): void {
40-
combineLatest([
41-
this.userService.isAuthenticated,
42-
this.route.params,
43-
this.route.queryParams,
44-
])
40+
combineLatest([this.userService.isAuthenticated, this.route.params, this.route.queryParams])
4541
.pipe(takeUntilDestroyed(this.destroyRef))
4642
.subscribe(([isAuthenticated, params, queryParams]) => {
4743
this.isAuthenticated = isAuthenticated;

0 commit comments

Comments
 (0)