Skip to content

Commit

Permalink
Fix nyc unit test failures (microsoft#13384)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo committed Aug 11, 2020
1 parent 55b4573 commit c06f2d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/client/datascience/jupyter/jupyterExporter.ts
Expand Up @@ -116,7 +116,8 @@ export class JupyterExporter implements INotebookExporter {
version: pythonNumber
},
orig_nbformat: 2,
kernelspec: kernelSpec
// tslint:disable-next-line: no-any
kernelspec: kernelSpec as any
};

// Create an object for matching cell definitions
Expand Down
4 changes: 3 additions & 1 deletion src/client/datascience/notebookStorage/baseModel.ts
Expand Up @@ -128,7 +128,9 @@ export abstract class BaseNotebookModel implements INotebookModel {
...this.notebookJson.metadata,
id: this.kernelId
}
: this.notebookJson.metadata;
: // Fix nyc compiler problem
// tslint:disable-next-line: no-any
(this.notebookJson.metadata as any);
}
public get isTrusted() {
return this._isTrusted;
Expand Down

0 comments on commit c06f2d3

Please sign in to comment.