Skip to content

Commit

Permalink
chore(Field.Toggle): adds initial test (#3001)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Dec 6, 2023
1 parent 92ffba0 commit 0f4d7bc
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { render } from '@testing-library/react'
import Toggle, { Props } from '..'

describe('Field.Toggle', () => {
it('should render with props', () => {
const props: Props = { valueOn: 'checked', valueOff: 'unchecked' }
render(<Toggle {...props} />)
})
})

0 comments on commit 0f4d7bc

Please sign in to comment.