scope.tsx 432 B

12345678910111213141516171819202122
  1. import { EditorView } from '@codemirror/view'
  2. export const mockScope = () => ({
  3. settings: {
  4. syntaxValidation: false,
  5. pdfViewer: 'pdfjs',
  6. },
  7. editor: {
  8. sharejs_doc: {
  9. doc_id: 'test-doc',
  10. getSnapshot: () => 'some doc content',
  11. },
  12. view: new EditorView({
  13. doc: '\\documentclass{article}',
  14. }),
  15. },
  16. hasLintingError: false,
  17. ui: {
  18. view: 'editor',
  19. pdfLayout: 'sideBySide',
  20. },
  21. })