mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 00:02:31 +00:00
test(mobile): keep canvas fixture type-safe
This commit is contained in:
@@ -34,7 +34,7 @@ it.each([false, true])(
|
||||
vi.spyOn(HTMLCanvasElement.prototype, 'getContext').mockReturnValue({
|
||||
font: '',
|
||||
measureText: () => ({ width: 8 })
|
||||
} as CanvasRenderingContext2D)
|
||||
} as unknown as CanvasRenderingContext2D)
|
||||
const Terminal: new (options: Record<string, unknown>) => BundledTerminal = new Script(
|
||||
`${XTERM_ENGINE_JS}\nwindow.Terminal`
|
||||
).runInThisContext()
|
||||
|
||||
Reference in New Issue
Block a user