Skip to content

Commit

Permalink
eslint fix, adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
ann-kilzer committed Apr 21, 2024
1 parent df04bbd commit 5f1ed2e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ module.exports = {
'@typescript-eslint/no-unsafe-call': ['off'],
'@stylistic/ts/indent': ['error', 4],
},
settings: {
react: {
version: 'detect'
},
}
}
1 change: 1 addition & 0 deletions src/components/SideDrawer/DrawerContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const DrawerContents: FC = () => {
<List>
{navList}
<ListItem>
Coming soon!
</ListItem>
</List>
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { describe, it } from 'vitest'
import { describe, expect, it } from 'vitest'
import { render } from '@/tests/customRender'
import { screen } from '@testing-library/react'
import DrawerContents from '../DrawerContents'

describe('DrawerContents', () => {
it('should display the DrawerContents', async () => {
render(<DrawerContents />)
// todo
const home = await screen.findByText('Coming soon!')
expect(home).toBeVisible()
})

it.todo('should show the NavLinks on mobile screens')
Expand Down

0 comments on commit 5f1ed2e

Please sign in to comment.