mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 23:59:01 +02:00
cee51af9fd
GitOrigin-RevId: 9a51252e2df6e52532d0cd787a8fd744af41ed95
24 lines
463 B
TypeScript
24 lines
463 B
TypeScript
import { EditorView } from '@codemirror/view'
|
|
|
|
export const mockScope = () => ({
|
|
settings: {
|
|
syntaxValidation: false,
|
|
pdfViewer: 'pdfjs',
|
|
},
|
|
editor: {
|
|
open_doc_name: 'main.tex',
|
|
sharejs_doc: {
|
|
doc_id: 'test-doc',
|
|
getSnapshot: () => 'some doc content',
|
|
},
|
|
view: new EditorView({
|
|
doc: '\\documentclass{article}',
|
|
}),
|
|
},
|
|
hasLintingError: false,
|
|
ui: {
|
|
view: 'editor',
|
|
pdfLayout: 'sideBySide',
|
|
},
|
|
})
|