Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial unit tests for class NotebookEditor #10926

Merged
merged 23 commits into from
Jun 15, 2020
Merged

Initial unit tests for class NotebookEditor #10926

merged 23 commits into from
Jun 15, 2020

Conversation

ranasaria
Copy link
Contributor

This pull request takes over the review from:#10879 - the branch corresponding to that PR is being left behind for Charles to do some code coverage trace upload diagnostics, so I am moving that PR to a new branch. If you had shared any feedback on the old PR then that has already been addressed and if you have new feedback, you can take care of it here or there. But final approvals should be done on this PR.

This PR checks in the initial few unit tests for NotebookEditor class. It also fixes a small stack overflow issue in promise.ts and does some spelling fixes and readability renames.
This PR fixes #10875

Tested all unit tests on a dev box. The following is the coverage added to the NotebookEditor class(from basically 0) from these tests:
https://user-images.githubusercontent.com/41588310/84447547-225fca00-abfd-11ea-9e8c-9a42a4eca7e7.png

@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 35.204% when pulling 4928009 on feat/nbCover0 into 4c82cf0 on main.

@ranasaria ranasaria merged commit f02e2a4 into main Jun 15, 2020
@ranasaria ranasaria deleted the feat/nbCover0 branch June 15, 2020 22:27
ktech99 pushed a commit that referenced this pull request Aug 23, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deferred-> [Symbol.toStringTag] call causes stack overflow
5 participants