mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 18:23:41 -05:00
cfb1a5b82f
GitOrigin-RevId: 12468956281d11f9ebdc50a2e30e5f8213f68308
22 lines
432 B
TypeScript
22 lines
432 B
TypeScript
import { EditorView } from '@codemirror/view'
|
|
|
|
export const mockScope = () => ({
|
|
settings: {
|
|
syntaxValidation: false,
|
|
pdfViewer: 'pdfjs',
|
|
},
|
|
editor: {
|
|
sharejs_doc: {
|
|
doc_id: 'test-doc',
|
|
getSnapshot: () => 'some doc content',
|
|
},
|
|
view: new EditorView({
|
|
doc: '\\documentclass{article}',
|
|
}),
|
|
},
|
|
hasLintingError: false,
|
|
ui: {
|
|
view: 'editor',
|
|
pdfLayout: 'sideBySide',
|
|
},
|
|
})
|