Skip to content

Commit

Permalink
test: fix type test
Browse files Browse the repository at this point in the history
  • Loading branch information
pionxzh committed Aug 13, 2024
1 parent cd47783 commit ddc296b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/util.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ describe('function createDataType', () => {
}
)
expectTypeOf(dataType).toEqualTypeOf<{
is:(value: unknown, path: Path) => value is string
is:(value: unknown, path: Path) => boolean
Component: ComponentType<DataItemProps<string>>
}>()
expectTypeOf(dataType.is).returns.toBeBoolean()
Expand All @@ -248,7 +248,7 @@ describe('function createDataType', () => {
}
)
expectTypeOf(dataType).toEqualTypeOf<{
is:(value: unknown, path: Path) => value is string
is:(value: unknown, path: Path) => boolean
Component: ComponentType<DataItemProps<string>>
Editor: ComponentType<DataItemProps<string>>
}>()
Expand Down Expand Up @@ -278,7 +278,7 @@ describe('function createDataType', () => {
}
)
expectTypeOf(dataType).toEqualTypeOf<{
is:(value: unknown, path: Path) => value is string
is:(value: unknown, path: Path) => boolean
Component: ComponentType<DataItemProps<string>>
PreComponent: ComponentType<DataItemProps<string>>
PostComponent: ComponentType<DataItemProps<string>>
Expand Down Expand Up @@ -314,7 +314,7 @@ describe('function createDataType', () => {
}
)
expectTypeOf(dataType).toEqualTypeOf<{
is:(value: unknown, path: Path) => value is string
is:(value: unknown, path: Path) => boolean
Component: ComponentType<DataItemProps<string>>
Editor: ComponentType<DataItemProps<string>>
PreComponent: ComponentType<DataItemProps<string>>
Expand Down

0 comments on commit ddc296b

Please sign in to comment.