| 123456789101112131415161718 |
- import { EditorView } from '@codemirror/view'
- export const mockScope = () => ({
- settings: {
- syntaxValidation: false,
- pdfViewer: 'pdfjs',
- },
- editor: {
- sharejs_doc: {
- doc_id: 'test-doc',
- getSnapshot: () => 'some doc content',
- hasBufferedOps: () => false,
- },
- view: new EditorView({
- doc: '\\documentclass{article}',
- }),
- },
- })
|