Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ann-kilzer committed Jul 11, 2024
1 parent fc0bfe3 commit 60918be
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions e2e/team.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect, Locator } from '@playwright/test';
import { test, expect, Locator } from '@playwright/test'

/** Verifies visibility of the name, title, and photo
*
Expand Down Expand Up @@ -43,7 +43,7 @@ test('shows the team in English', async ({ page }) => {
await expect(annLink).toHaveRole('link')
await expect(annLink).toHaveAttribute('href', 'https://annkilzer.net')
await expect(annLink).toHaveAttribute('target', '_blank')
});
})

test('shows the team in Japanese', async ({ page }) => {
await page.goto('/#/team')
Expand All @@ -57,7 +57,7 @@ test('shows the team in Japanese', async ({ page }) => {
const teamContainer = page.getByLabel('team-container')

// click off to close sidebar
await teamContainer.click({ force: true });
await teamContainer.click({ force: true })

const heading = teamContainer.getByText('✨ リーダーシップ・チーム ✨')
await expect(heading).toBeVisible()
Expand Down
2 changes: 1 addition & 1 deletion src/components/SideDrawer/DrawerContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next'

const DrawerContents: FC = () => {
const theme = useTheme()
const { t } = useTranslation();
const { t } = useTranslation()
let navList = <></>
if (useMediaQuery(theme.breakpoints.down('sm'))) {
navList = (<>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TeamMemberCard/TeamMemberCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FC, useEffect, useState } from 'react'
import Card from '@mui/material/Card';
import Card from '@mui/material/Card'
import CardContent from '@mui/material/CardContent'
import CardMedia from '@mui/material/CardMedia'
import Typography from '@mui/material/Typography'
Expand Down
4 changes: 2 additions & 2 deletions src/routes/Team/__test__/Team.test.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { describe, expect, it } from 'vitest'
import { render } from '@/tests/customRender'
import { screen } from '@testing-library/react'
import Team from '../Team';
import Team from '../Team'

describe('Team', () => {
it('should render the Team page', async () => {
render(<Team />)
const title = await screen.findByText('✨ Leadership Team ✨')
expect(title).toBeVisible()
})
});
})

0 comments on commit 60918be

Please sign in to comment.