types: improve Checker parent typing (#8128)

This commit is contained in:
neverland
2021-02-10 22:53:55 +08:00
committed by GitHub
parent afad4ca90a
commit b5944524d9
3 changed files with 14 additions and 5 deletions
+2 -1
View File
@@ -176,7 +176,7 @@ test('should toggle collapse after calling the toggle method in accordion mode',
setup() {
const itemA = ref();
const itemB = ref();
const active = ref([]);
const active = ref('');
return {
itemA,
itemB,
@@ -194,6 +194,7 @@ test('should toggle collapse after calling the toggle method in accordion mode',
});
wrapper.vm.itemA.toggle();
await later();
expect(wrapper.vm.active).toEqual('a');
wrapper.vm.itemB.toggle();