(nb: NotebookDocument)
| 218 | return nb; |
| 219 | } |
| 220 | function createCell(nb: NotebookDocument) { |
| 221 | const cell = mock<NotebookCell>(); |
| 222 | when(cell.notebook).thenReturn(nb); |
| 223 | const doc = mock<TextDocument>(); |
| 224 | when(cell.document).thenReturn(instance(doc)); |
| 225 | when(doc.isClosed).thenReturn(false); |
| 226 | return cell; |
| 227 | } |
| 228 | test('Display message when kernel is disconnected (without any pending cells)', async () => { |
| 229 | const kernel = createKernel(); |
| 230 |
no outgoing calls
no test coverage detected