Skip to content

Commit a67c7b1

Browse files
Fix error
1 parent 3dcc850 commit a67c7b1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cypress/components/Headlines.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ describe('Headlines Component', () => {
9595
it('should be active if the URL has the hash', () => {
9696
/* Testing the active headline with Headline1 */
9797

98-
const title = 'What is JSON Schema?'
99-
const slug = slugifyMarkdownHeadline(title)
100-
98+
const title = 'What is JSON Schema?';
99+
const slug = slugifyMarkdownHeadline(title);
100+
101101
// Update the existing mock router's properties
102102
mockRouter.asPath = `/#${slug}`;
103103

lib/slugifyMarkdownHeadline.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export default function slugifyMarkdownHeadline(
3131
lower: true,
3232
trim: true,
3333
remove: /[*+~()'"!]/g,
34-
3534
});
3635
return slug;
3736
}

0 commit comments

Comments
 (0)