Fix main typecheck: pin Buffer<ArrayBuffer> in cdp-ws-proxy mid-print test (#7263)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Brennan Benson
2026-07-03 13:30:55 -07:00
committed by GitHub
co-authored by Orca
parent 02dfb4b334
commit 700b492b1b
+2 -2
View File
@@ -647,10 +647,10 @@ describe('CdpWsProxy', () => {
})
it('does not register a PDF stream when the client disconnects mid-print', async () => {
let resolvePrint: (buf: Buffer) => void = () => {}
let resolvePrint: (buf: Buffer<ArrayBuffer>) => void = () => {}
mock.webContents.printToPDF.mockImplementationOnce(
() =>
new Promise<Buffer>((resolve) => {
new Promise<Buffer<ArrayBuffer>>((resolve) => {
resolvePrint = resolve
})
)