Skip to content

Commit b8ca840

Browse files
committed
Fix Input test
1 parent ffb3c01 commit b8ca840

File tree

5 files changed

+87
-22
lines changed

5 files changed

+87
-22
lines changed

packages/components/src/__tests__/index.browser.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ describe('export', () => {
33
const index = await import('../index')
44
expect({ ...index }).toEqual({
55
Button: expect.any(Function),
6+
Input: expect.any(Function),
67
})
78
})
89
})

packages/components/src/components/Input/Controlled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useState } from 'react'
33
import { Input } from '.'
44

55
export function Controlled() {
6-
const [value, setValue] = useState('d')
6+
const [value, setValue] = useState('')
77

88
return <Input onChange={(e) => setValue(e.target.value)} value={value} />
99
}

0 commit comments

Comments
 (0)