aboutsummaryrefslogtreecommitdiff
path: root/test/settings/components/ui/TextArea.test.tsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-09-26 14:19:27 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-09-26 16:12:58 +0900
commit645107c3fcc967e8b5824355c23287611d864612 (patch)
tree4df037cf5d6f1bf1f442543a14e6385edfc8c205 /test/settings/components/ui/TextArea.test.tsx
parentb141c46a2afe31dc7a4bfdf7f59c8871def2de23 (diff)
Fix mismatched signature
Diffstat (limited to 'test/settings/components/ui/TextArea.test.tsx')
-rw-r--r--test/settings/components/ui/TextArea.test.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/settings/components/ui/TextArea.test.tsx b/test/settings/components/ui/TextArea.test.tsx
index 232c7c0..258d791 100644
--- a/test/settings/components/ui/TextArea.test.tsx
+++ b/test/settings/components/ui/TextArea.test.tsx
@@ -20,7 +20,6 @@ describe("settings/ui/TextArea", () => {
ReactTestUtils.act(() => {
ReactDOM.render(
<TextArea
- type="textarea"
name="myname"
label="myfield"
value="myvalue"
@@ -48,7 +47,9 @@ describe("settings/ui/TextArea", () => {
label="myfield"
value="myvalue"
onChange={(e) => {
- expect((e.target as HTMLInputElement).value).to.equal("newvalue");
+ expect((e.target as HTMLTextAreaElement).value).to.equal(
+ "newvalue"
+ );
done();
}}
/>,