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:
Charles Gagnon
2020-05-26 17:27:43 -07:00
committed by GitHub
parent 8f33e1c4c0
commit 7496d09eb9
5 changed files with 197 additions and 16 deletions

View File

@@ -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> {