Skip to content

Commit 34f4ffd

Browse files
committed
fix: tese case due to vue behavior changes
1 parent bf491cd commit 34f4ffd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/devtools-kit/__tests__/component/decode-state.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { getObjectDetails } from '../../src/core/component/state/custom'
2+
13
function omitKeysOnCustom(obj: { _custom: { [key: string]: unknown } } | undefined, keys: string[]) {
24
return obj == null ? obj : { _custom: Object.fromEntries(Object.entries(obj._custom).filter(([key]) => !keys.includes(key))) }
35
}
@@ -68,6 +70,7 @@ it.each([
6870
() => {
6971
const bar = computed(() => '1')
7072
const a = toRef(() => bar.value)
73+
a.value
7174
return a
7275
},
7376
{
@@ -83,6 +86,7 @@ it.each([
8386
() => {
8487
const bar = reactive({ value: '1' })
8588
const a = toRef(bar, 'value')
89+
a.value
8690
return a
8791
},
8892
{
@@ -98,6 +102,7 @@ it.each([
98102
() => {
99103
const bar = reactive({ value: '1', value2: '2' })
100104
const a = toRefs(bar)
105+
a.value.value
101106
return a.value
102107
},
103108
{
@@ -109,5 +114,5 @@ it.each([
109114
},
110115
],
111116
])('should getObjectDetail by passing %s state', (_, state, expected) => {
112-
// expect(omitKeysOnCustom(getObjectDetails(state()), ['tooltipText'])).toEqual(expected)
117+
expect(omitKeysOnCustom(getObjectDetails(state()), ['tooltipText'])).toEqual(expected)
113118
})

0 commit comments

Comments
 (0)