Skip to content

Commit f568464

Browse files
authored
docs: fixed incorrect checkbox value check (#2495)
Fixes #2475
1 parent 483bf89 commit f568464

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,10 +1691,10 @@ test('setValue on checkbox', async () => {
16911691
const wrapper = mount(Component)
16921692

16931693
await wrapper.find('input[type="checkbox"]').setValue(true)
1694-
expect(wrapper.find('div')).toBe(true)
1694+
expect(wrapper.find('div').exists()).toBe(true)
16951695

16961696
await wrapper.find('input[type="checkbox"]').setValue(false)
1697-
expect(wrapper.find('div')).toBe(false)
1697+
expect(wrapper.find('div').exists()).toBe(false)
16981698
})
16991699

17001700
test('setValue on input text', async () => {

docs/fr/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,10 +1683,10 @@ test('setValue sur une checkbox', async () => {
16831683
const wrapper = mount(Component);
16841684
16851685
await wrapper.find('input[type="checkbox"]').setValue(true);
1686-
expect(wrapper.find('div')).toBe(true);
1686+
expect(wrapper.find('div').exists()).toBe(true);
16871687
16881688
await wrapper.find('input[type="checkbox"]').setValue(false);
1689-
expect(wrapper.find('div')).toBe(false);
1689+
expect(wrapper.find('div').exists()).toBe(false);
16901690
});
16911691
16921692
test('setValue sur un champ texte', async () => {

0 commit comments

Comments
 (0)