-
-
Notifications
You must be signed in to change notification settings - Fork 445
Add tests for BoardsServiceProvider #1337
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
Conversation
prevent auto-select of unattached boards Co-authored-by: Francesco Spissu <francescospissu@users.noreply.github.com>
get latestValidBoardsConfig(): | ||
| RecursiveRequired<BoardsConfig.Config> | ||
| undefined { | ||
return this._latestValidBoardsConfig; | ||
} | ||
|
||
get latestBoardsConfig(): BoardsConfig.Config | undefined { | ||
return this._latestBoardsConfig; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you use public APIs for the tests or do you think this will be used anywhere else in the app?
If the former, I propose using protected
and subclass for the tests and increasing the visibility. If the latter, please explain where you plan to use it.
subject.onAvailablePortsChanged(() => { | ||
expect(true).to.be.ok; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test fail if the event is not received?
d55cd18
to
b7b155c
Compare
Closing this PR for now as the tested feature changed substantially since these tests were written. |
Motivation
The following tests — marked with 1) and 2) — are failing on the main branch and should succeed here.
Change description
Other information
Reviewer checklist