Skip to content

Commit c4d825e

Browse files
committed
cleanup
1 parent 5c94071 commit c4d825e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: cypress/e2e/spec.cy.ts

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ describe('Editor Test', () => {
1010

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

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

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

5458
it('allows for multiple editors', () => {
5559
cy.on('uncaught:exception', (err, runnable) => {
60+
// Note: see note about console errors above
5661
return false
5762
})
5863
cy.visit('http://localhost:5173/')

Diff for: demo/src/LeanMonaco.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function LeanMonacoComponent({options, numberEditors} : {options: LeanMonacoOpti
2929
<>
3030
<LeanMonacoContext.Provider value={leanMonaco}>
3131
{[...Array(numberEditors)].map((_x, i) =>
32-
<LeanMonacoEditorComponent key={i} fileName={`/project/test${i}.lean`} value={`#check ${i}\n#eval (panic "oh no" : Nat)`}/>
32+
<LeanMonacoEditorComponent key={i} fileName={`/project/test${i}.lean`} value={`#check ${i}`}/>
3333
)}
3434
<div className='infoview' ref={infoviewRef}></div>
3535
</LeanMonacoContext.Provider>

0 commit comments

Comments
 (0)