Initial unit tests for class NotebookEditor (#10926)

* first few notebookEditor tests

* formating fixes

* PR feedback

* PR feedback

* copyright fixes

* improve test names and assertion messages

* PR feedback

* improve test names.

* test name change

* test name change

* remove unneeded cast

* remove spurious comment

* fix misplaced paranthesis - thanks hygiene checker!

* remove unused code

* remove deferredPromise

* rempve unnecessary mock usage in dispose test

* use getContainer for ['parent']

* notebookService needs 9th constructor argument

* Add uploading debugging step

* remove changes to ci.yml

Co-authored-by: Arvind Ranasaria MacPro <arvranmac@MININT-OE7B592.fareast.corp.microsoft.com>
Co-authored-by: chgagnon <chgagnon@microsoft.com>
This commit is contained in:
Arvind Ranasaria
2020-06-15 15:27:42 -07:00
committed by GitHub
parent 4c82cf0ebb
commit f02e2a4b72
6 changed files with 241 additions and 56 deletions

View File

@@ -35,6 +35,6 @@ export class Deferred<T> implements Promise<T> {
}
get [Symbol.toStringTag](): string {
return this.toString();
return this.promise[Symbol.toStringTag]; // symbol tag same as that of underlying promise object
}
}