Skip to content

Commit fcdf440

Browse files
committed
test: update snapshots for vuejs/core#12935
1 parent 0e4b411 commit fcdf440

File tree

8 files changed

+560
-307
lines changed

8 files changed

+560
-307
lines changed

packages/component-meta/tests/index.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ const worker = (checker: ComponentMetaChecker, withTsconfig: boolean) => describ
531531
const onBaz = meta.events.find(event => event.name === 'baz');
532532

533533
expect(onFoo).toBeDefined();
534-
expect(onFoo?.type).toEqual('[data?: { foo: string; } | undefined]');
534+
expect(onFoo?.type).toEqual('[{ foo: string; } | undefined]');
535535
expect(onFoo?.signature).toEqual('(event: "foo", data?: { foo: string; } | undefined): void');
536536
expect(onFoo?.schema).toEqual([
537537
{
@@ -560,7 +560,7 @@ const worker = (checker: ComponentMetaChecker, withTsconfig: boolean) => describ
560560
]);
561561

562562
expect(onBar).toBeDefined();
563-
expect(onBar?.type).toEqual('[value: { arg1: number; arg2?: any; }]');
563+
expect(onBar?.type).toEqual('[{ arg1: number; arg2?: any; }]');
564564
expect(onBar?.signature).toEqual('(event: "bar", value: { arg1: number; arg2?: any; }): void');
565565
expect(onBar?.schema).toEqual([
566566
{
@@ -593,7 +593,7 @@ const worker = (checker: ComponentMetaChecker, withTsconfig: boolean) => describ
593593

594594
expect(onBaz).toBeDefined();
595595
expect(onBaz?.type).toEqual('[]');
596-
expect(onBaz?.signature).toEqual('(event: "baz"): void');
596+
expect(onBaz?.signature).toEqual('(e: "baz"): void');
597597
expect(onBaz?.schema).toEqual([]);
598598
});
599599

0 commit comments

Comments
 (0)