Skip to content

Commit

Permalink
CCM-5848: Fix linting problems
Browse files Browse the repository at this point in the history
  • Loading branch information
m-salaudeen committed Jul 30, 2024
1 parent e6dc65f commit 100fc68
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/pages/HomePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ describe('HomePage component', () => {
it('renders component correctly', () => {
render(<HomePage />);

expect(screen.getByTestId("page-heading")).toBeInTheDocument();
expect(screen.getByTestId('page-heading')).toBeInTheDocument();
});
});
5 changes: 1 addition & 4 deletions src/__tests__/utils/contact-class-names.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ describe('concatClassNames function', () => {
it('calls the concatClassName function with string classes parameters separated by comma', () => {
expect(concatClassNames('class1', 'class2')).toBe('class1 class2');
});
it('calls the concatClassName function without any parameters', () => {
expect(concatClassNames()).toBe('');
});
it('calls the concatClassName function with undefined parameter', () => {
it('calls the concatClassName function without any/undefined parameters', () => {
expect(concatClassNames()).toBe('');
});
it('calls the concatClassName function with false boolean parameter', () => {
Expand Down
64 changes: 32 additions & 32 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Metadata } from "next";
import "@/src/styles/app.scss";
import content from "@/src/content/content";
import { NHSNotifyHeader } from "../components/molecules/Header/Header";
import { NHSNotifyContainer } from "../components/layouts/container/container";
import { NHSNotifyFooter } from "../components/molecules/Footer/Footer";
import type { Metadata } from 'next';
import '@/src/styles/app.scss';
import content from '@/src/content/content';
import { NHSNotifyHeader } from '../components/molecules/Header/Header';
import { NHSNotifyContainer } from '../components/layouts/container/container';
import { NHSNotifyFooter } from '../components/molecules/Footer/Footer';

export const metadata: Metadata = {
title: content.global.mainLayout.title,
Expand All @@ -16,55 +16,55 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en">
<html lang='en'>
<head>
<script src="/templates/lib/nhsuk-8.1.1.min.js" defer />
<script src='/templates/lib/nhsuk-8.1.1.min.js' defer />
<title>{content.global.mainLayout.title}</title>
<link
rel="shortcut icon"
href="/templates/lib/assets/favicons/favicon.ico"
type="image/x-icon"
rel='shortcut icon'
href='/templates/lib/assets/favicons/favicon.ico'
type='image/x-icon'
/>
<link
rel="apple-touch-icon"
href="/templates/lib/assets/favicons/apple-touch-icon-180x180.png"
rel='apple-touch-icon'
href='/templates/lib/assets/favicons/apple-touch-icon-180x180.png'
/>
<link
rel="mask-icon"
href="/templates/lib/assets/favicons/favicon.svg"
color="#005eb8"
rel='mask-icon'
href='/templates/lib/assets/favicons/favicon.svg'
color='#005eb8'
/>
<link
rel="icon"
sizes="192x192"
href="/templates/lib/assets/favicons/favicon-192x192.png"
rel='icon'
sizes='192x192'
href='/templates/lib/assets/favicons/favicon-192x192.png'
/>
<meta
name="msapplication-TileImage"
content="/templates/lib/assets/favicons/mediumtile-144x144.png"
name='msapplication-TileImage'
content='/templates/lib/assets/favicons/mediumtile-144x144.png'
/>
<meta name="msapplication-TileColor" content="#005eb8" />
<meta name='msapplication-TileColor' content='#005eb8' />
<meta
name="msapplication-square70x70logo"
content="/templates/lib/assets/favicons/smalltile-70x70.png"
name='msapplication-square70x70logo'
content='/templates/lib/assets/favicons/smalltile-70x70.png'
/>
<meta
name="msapplication-square150x150logo"
content="/templates/lib/assets/favicons/mediumtile-150x150.png"
name='msapplication-square150x150logo'
content='/templates/lib/assets/favicons/mediumtile-150x150.png'
/>
<meta
name="msapplication-wide310x150logo"
content="/templates/lib/assets/favicons/widetile-310x150.png"
name='msapplication-wide310x150logo'
content='/templates/lib/assets/favicons/widetile-310x150.png'
/>
<meta
name="msapplication-square310x310logo"
content="/templates/lib/assets/favicons/largetile-310x310.png"
name='msapplication-square310x310logo'
content='/templates/lib/assets/favicons/largetile-310x310.png'
/>
</head>
<body suppressHydrationWarning>
<script
type="text/javascript"
src="/templates/lib/nhs-frontend-js-check.js"
type='text/javascript'
src='/templates/lib/nhs-frontend-js-check.js'
defer
/>
<NHSNotifyHeader />
Expand Down
8 changes: 4 additions & 4 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client";
'use client';

export default function HomePage() {
return (
<div className="nhsuk-grid-row" data-testid="page-content-wrapper">
<div className="nhsuk-grid-column-two-thirds">
<h1 className="nhsuk-heading-xl" data-testid="page-heading">
<div className='nhsuk-grid-row' data-testid='page-content-wrapper'>
<div className='nhsuk-grid-column-two-thirds'>
<h1 className='nhsuk-heading-xl' data-testid='page-heading'>
Hello World!
</h1>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/content/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ const content = {
pages: {},
};


export default content;

0 comments on commit 100fc68

Please sign in to comment.