This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from jaycee/test-love-2-machines
app/widgets/machine-panel-view.js * ```_smartUpdateList``` has been refactored, moving its two responsibilities-- adding and removing tokens as necessary--into two methods. These methods are easier to test, and a bit clearer to read. tests/test_machine_view_panel_view.js * Unit tests for all inputs and all expected behavior of the components of _smartUpdateList have been added. * Unit tests for _updateMachine and _renderMachineToken have been added Note to reviewers: machine tokens are also tested in their own file, which has not been updated. Additionally, invisible in the diff, but available in the full file, machine column has quite extensive functional testing; I've only added units to more directly tests private methods that were only implicitly tested.
- Loading branch information
Showing
2 changed files
with
227 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters