Skip to content

Commit fcf60d5

Browse files
committed
chore: test.todo
1 parent 7751465 commit fcf60d5

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

packages/runtime-vapor/__tests__/componentProps.spec.ts

+33-30
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('component props (vapor)', () => {
8484
// expect(props.qux).toEqual(5) // TODO: attrs
8585
})
8686

87-
test('stateful with setup', () => {
87+
test.todo('stateful with setup', () => {
8888
// TODO:
8989
})
9090

@@ -364,16 +364,16 @@ describe('component props (vapor)', () => {
364364
// TODO: impl warn
365365
})
366366

367-
test('warn absent required props', () => {
367+
test.todo('warn absent required props', () => {
368368
// TODO: impl warn
369369
})
370370

371-
test('warn on type mismatch', () => {
371+
test.todo('warn on type mismatch', () => {
372372
// TODO: impl warn
373373
})
374374

375375
// #3495
376-
test('should not warn required props using kebab-case', async () => {
376+
test.todo('should not warn required props using kebab-case', async () => {
377377
// TODO: impl warn
378378
})
379379

@@ -411,33 +411,36 @@ describe('component props (vapor)', () => {
411411
})
412412

413413
// #3288
414-
test('declared prop key should be present even if not passed', async () => {
415-
// let initialKeys: string[] = []
416-
// const changeSpy = vi.fn()
417-
// const passFoo = ref(false)
418-
// const Comp = {
419-
// props: ['foo'],
420-
// setup() {
421-
// const instance = getCurrentInstance()!
422-
// initialKeys = Object.keys(instance.props)
423-
// watchEffect(changeSpy)
424-
// return {}
425-
// },
426-
// render() {
427-
// return {}
428-
// },
429-
// }
430-
// const Parent = createIf(
431-
// () => passFoo.value,
432-
// () => {
433-
// return render(Comp , { foo: 1 }, host) // TODO: createComponent fn
434-
// },
435-
// )
436-
// // expect(changeSpy).toHaveBeenCalledTimes(1)
437-
})
414+
test.todo(
415+
'declared prop key should be present even if not passed',
416+
async () => {
417+
// let initialKeys: string[] = []
418+
// const changeSpy = vi.fn()
419+
// const passFoo = ref(false)
420+
// const Comp = {
421+
// props: ['foo'],
422+
// setup() {
423+
// const instance = getCurrentInstance()!
424+
// initialKeys = Object.keys(instance.props)
425+
// watchEffect(changeSpy)
426+
// return {}
427+
// },
428+
// render() {
429+
// return {}
430+
// },
431+
// }
432+
// const Parent = createIf(
433+
// () => passFoo.value,
434+
// () => {
435+
// return render(Comp , { foo: 1 }, host) // TODO: createComponent fn
436+
// },
437+
// )
438+
// // expect(changeSpy).toHaveBeenCalledTimes(1)
439+
},
440+
)
438441

439442
// #3371
440-
test(`avoid double-setting props when casting`, async () => {
443+
test.todo(`avoid double-setting props when casting`, async () => {
441444
// TODO: proide, slots
442445
})
443446

@@ -459,7 +462,7 @@ describe('component props (vapor)', () => {
459462
})
460463

461464
// #5016
462-
test('handling attr with undefined value', () => {
465+
test.todo('handling attr with undefined value', () => {
463466
// TODO: attrs
464467
})
465468

0 commit comments

Comments
 (0)