scope.tsx 311 B

1234567891011121314151617
  1. export const mockScope = () => ({
  2. settings: {
  3. syntaxValidation: false,
  4. pdfViewer: 'pdfjs',
  5. },
  6. editor: {
  7. sharejs_doc: {
  8. doc_id: 'test-doc',
  9. getSnapshot: () => 'some doc content',
  10. },
  11. },
  12. hasLintingError: false,
  13. ui: {
  14. view: 'editor',
  15. pdfLayout: 'sideBySide',
  16. },
  17. })