mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 23:05:42 +01:00
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
|
|
export const getDocument = jest.fn(() => ({
|
||
|
|
promise: Promise.resolve({ numPages: 3 }),
|
||
|
|
}))
|
||
|
|
|
||
|
|
export const GlobalWorkerOptions = { workerSrc: '' }
|
||
|
|
export const VerbosityLevel = { ERRORS: 0 }
|
||
|
|
|
||
|
|
globalThis.pdfjsLib = {
|
||
|
|
getDocument,
|
||
|
|
GlobalWorkerOptions,
|
||
|
|
VerbosityLevel,
|
||
|
|
AbortException: class AbortException extends Error {},
|
||
|
|
}
|