overleaf/services/web/test/frontend/components/pdf-preview/scope.tsx

14 lines
249 B
TypeScript
Raw Normal View History

export const mockScope = () => ({
settings: {
syntaxValidation: false,
pdfViewer: 'pdfjs',
},
editor: {
sharejs_doc: {
doc_id: 'test-doc',
getSnapshot: () => 'some doc content',
},
},
hasLintingError: false,
})