Skip to content

Commit cb2d864

Browse files
committed
chore: update test example
1 parent bb48d68 commit cb2d864

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/main.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ function TestApp() {
2121
}
2222
if (type === 'insert-tag-by-arr') {
2323
setValue((prv) => {
24-
prv[0].push({ type: 'tag', attrs: { label: 'sss', class: '----asd---' } })
24+
prv[0].push({
25+
type: 'tag',
26+
attrs: { label: 'sss', class: '----asd---', ddd: 'dddd', sss: 'tttt' },
27+
})
2528
return [...prv]
2629
})
2730
}
@@ -54,6 +57,8 @@ function TestApp() {
5457
onChange={handleOnChange}
5558
placeholder="Write here..."
5659
data-testId="input"
60+
spellCheck={false}
61+
// tagAttrs={{ test-attr: '22', test: undefined }}
5762
/>
5863
</div>
5964
)

0 commit comments

Comments
 (0)