mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
test snapshot
This commit is contained in:
parent
42e03a4296
commit
3a84b6db07
@ -6,6 +6,6 @@ import { TextInput } from './TextInput'
|
|||||||
describe('<TextInput />', () => {
|
describe('<TextInput />', () => {
|
||||||
it('renders properly', () => {
|
it('renders properly', () => {
|
||||||
const wrapper = render(<TextInput />)
|
const wrapper = render(<TextInput />)
|
||||||
expect(wrapper).toBeTruthy()
|
expect(wrapper.container.firstChild).toMatchSnapshot()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
15
src/Components/Input/__snapshots__/TextInput.spec.tsx.snap
Normal file
15
src/Components/Input/__snapshots__/TextInput.spec.tsx.snap
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||||
|
|
||||||
|
exports[`<TextInput /> > renders properly 1`] = `
|
||||||
|
<div
|
||||||
|
class="tw-form-control undefined"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
class="tw-input tw-input-bordered tw-w-full "
|
||||||
|
placeholder=""
|
||||||
|
required=""
|
||||||
|
type="text"
|
||||||
|
value=""
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
Loading…
x
Reference in New Issue
Block a user