Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 25, 2024
1 parent 5c94071 commit c4d825e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ describe('Editor Test', () => {

it('displays the infoview', () => {
cy.on('uncaught:exception', (err, runnable) => {
// Note: this is because the server throws sometimes random errors about
// the Lean server being stopped/restarted etc. which don't prevent the site from working
return false
})
cy.visit('http://localhost:5173/')
Expand All @@ -19,6 +21,7 @@ describe('Editor Test', () => {

it('changes themes', () => {
cy.on('uncaught:exception', (err, runnable) => {
// Note: see note about console errors above
return false
})
cy.visit('http://localhost:5173/')
Expand All @@ -38,6 +41,7 @@ describe('Editor Test', () => {

it('inputs unicode', () => {
cy.on('uncaught:exception', (err, runnable) => {
// Note: see note about console errors above
return false
})
cy.visit('http://localhost:5173/')
Expand All @@ -53,6 +57,7 @@ describe('Editor Test', () => {

it('allows for multiple editors', () => {
cy.on('uncaught:exception', (err, runnable) => {
// Note: see note about console errors above
return false
})
cy.visit('http://localhost:5173/')
Expand Down
2 changes: 1 addition & 1 deletion demo/src/LeanMonaco.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function LeanMonacoComponent({options, numberEditors} : {options: LeanMonacoOpti
<>
<LeanMonacoContext.Provider value={leanMonaco}>
{[...Array(numberEditors)].map((_x, i) =>
<LeanMonacoEditorComponent key={i} fileName={`/project/test${i}.lean`} value={`#check ${i}\n#eval (panic "oh no" : Nat)`}/>
<LeanMonacoEditorComponent key={i} fileName={`/project/test${i}.lean`} value={`#check ${i}`}/>
)}
<div className='infoview' ref={infoviewRef}></div>
</LeanMonacoContext.Provider>
Expand Down

0 comments on commit c4d825e

Please sign in to comment.