mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
test(diffs): type the nullable decorator surface explicitly
This commit is contained in:
@@ -160,14 +160,9 @@ it('keeps note navigation through an overlay-only rebuild and releases actual zo
|
||||
const fixture = createScrollCommandFixture()
|
||||
let surface: ReturnType<typeof fixture.bindEditor> | null = fixture.bindEditor()
|
||||
const consumed = vi.fn(consumeDiffCommentScrollCommand)
|
||||
const hook = renderHook(
|
||||
({
|
||||
current,
|
||||
label
|
||||
}: {
|
||||
current: ReturnType<typeof fixture.bindEditor> | null
|
||||
label: string
|
||||
}) => fixture.useDecoratorSurface(current, label, consumed),
|
||||
type Props = { current: ReturnType<typeof fixture.bindEditor> | null; label: string }
|
||||
const hook = renderHook<ReturnType<typeof fixture.useDecoratorSurface>, Props>(
|
||||
({ current, label }) => fixture.useDecoratorSurface(current, label, consumed),
|
||||
{ initialProps: { current: surface, label: 'Add note' } }
|
||||
)
|
||||
const mountCard = async (): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user