Skip to content

Commit e16f962

Browse files
committed
tests: update tests
1 parent ff7c4fe commit e16f962

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/form/__tests__/CFormTextarea.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '@testing-library/jest-dom/extend-expect'
44
import { CFormTextarea } from '../../../index'
55

66
test('loads and displays CFormTextarea component', async () => {
7-
const { container } = render(<CFormTextarea value="Some value" />)
7+
const { container } = render(<CFormTextarea defaultValue="Some value" />)
88
expect(container).toMatchSnapshot()
99
expect(container.firstChild).toHaveClass('form-control')
1010
})
@@ -18,7 +18,7 @@ test('CFormTextarea customize', async () => {
1818
plainText={true}
1919
readOnly={true}
2020
valid={true}
21-
value="Some value"
21+
defaultValue="Some value"
2222
/>,
2323
)
2424
expect(container).toMatchSnapshot()

0 commit comments

Comments
 (0)