mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Add and fix Notebook tests (#10488)
* Add and fix Notebook tests * Fix name * Fix compile * Acutally fix error * Add Notebook title test and fix command * Add extra check and add comments * Remove extra show error message
This commit is contained in:
@@ -108,7 +108,7 @@ describe('Jupyter Session', function (): void {
|
||||
|
||||
beforeEach(() => {
|
||||
mockJupyterSession = TypeMoq.Mock.ofType(SessionStub);
|
||||
session = new JupyterSession(mockJupyterSession.object, undefined);
|
||||
session = new JupyterSession(mockJupyterSession.object, undefined, true);
|
||||
});
|
||||
|
||||
it('should always be able to change kernels', function (): void {
|
||||
@@ -145,7 +145,7 @@ describe('Jupyter Session', function (): void {
|
||||
kernel = session.kernel;
|
||||
// Then I expect it to have the ID, and only be called once
|
||||
should(kernel.id).equal('id');
|
||||
mockJupyterSession.verify(s => s.kernel, TypeMoq.Times.exactly(2));
|
||||
mockJupyterSession.verify(s => s.kernel, TypeMoq.Times.exactly(1));
|
||||
});
|
||||
|
||||
it('should send name in changeKernel request', async function (): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user