Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Nov 21, 2024
1 parent 5396da8 commit d407f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,13 @@ export function WizardBody(props: WizardBodyProps): JSX.Element {
})
const [isBuffering, setIsBuffering] = useState(false)

const handleBuffer = () => {
const handleBuffer = (): void => {
setIsBuffering(true)
console.log('Buffering...')
}

const handlePlay = () => {
const handlePlay = (): void => {
if (isBuffering) {
setIsBuffering(false)
console.log('Buffering ended.')
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ describe('WizardBody', () => {
expect(props.proceed).toHaveBeenCalled()
fireEvent.click(screen.getByRole('button', { name: 'Go back' }))
expect(props.goBack).toHaveBeenCalled()
screen.getByLabelText('onboarding animation for page 1')
})
})

0 comments on commit d407f1f

Please sign in to comment.