MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / createCell

Function createCell

src/kernels/kernelAutoReConnectMonitor.unit.test.ts:220–227  ·  view source on GitHub ↗
(nb: NotebookDocument)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected