File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/jupyterlab-lsp/src/virtual Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,19 @@ describe('VirtualDocument', () => {
63
63
it ( 'disposes, but does not break methods which can be called from async callbacks' , ( ) => {
64
64
expect ( document . isDisposed ) . to . equal ( false ) ;
65
65
// appending code block here should work fine
66
- document . append_code_block ( 'code' , { } as CodeEditor . IEditor ) ;
66
+ document . append_code_block ( {
67
+ value : 'code' ,
68
+ ce_editor : { } as CodeEditor . IEditor
69
+ } ) ;
67
70
document . dispose ( ) ;
68
71
expect ( document . isDisposed ) . to . equal ( true ) ;
69
72
// mock console.warn
70
73
console . warn = jest . fn ( ) ;
71
74
// this one should not raise, but just warn
72
- document . append_code_block ( 'code' , { } as CodeEditor . IEditor ) ;
75
+ document . append_code_block ( {
76
+ value : 'code' ,
77
+ ce_editor : { } as CodeEditor . IEditor
78
+ } ) ;
73
79
expect ( ( console . warn as Mock ) . mock . calls [ 0 ] [ 0 ] ) . to . equal (
74
80
'Cannot append code block: document disposed'
75
81
) ;
You can’t perform that action at this time.
0 commit comments