Skip to content

Commit 11b6ad1

Browse files
committed
chore: fix type
1 parent c08e99d commit 11b6ad1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

themes/theme-default/tests/navbar.spec-d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ it('navbar options', () => {
7575
},
7676
]
7777

78-
expectTypeOf(navbarOptions1).toMatchTypeOf<NavbarOptions>()
79-
expectTypeOf(navbarOptions2).toMatchTypeOf<NavbarOptions>()
80-
expectTypeOf(navbarOptions3).toMatchTypeOf<NavbarOptions>()
81-
expectTypeOf(navbarOptions4).toMatchTypeOf<NavbarOptions>()
82-
expectTypeOf(navbarOptions5).toMatchTypeOf<NavbarOptions>()
78+
expectTypeOf(navbarOptions1).toExtend<NavbarOptions>()
79+
expectTypeOf(navbarOptions2).toExtend<NavbarOptions>()
80+
expectTypeOf(navbarOptions3).toExtend<NavbarOptions>()
81+
expectTypeOf(navbarOptions4).toExtend<NavbarOptions>()
82+
expectTypeOf(navbarOptions5).toExtend<NavbarOptions>()
8383
// @ts-expect-error: navbar can only support 3 level nesting
8484
assertType<NavbarOptions>(navbarOptions6)
8585
})

0 commit comments

Comments
 (0)