Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

lint tests dry tree printing #216

Merged
merged 2 commits into from
Feb 1, 2021
Merged

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Jan 30, 2021

Only should be one way to print trees. Get rid of duplication in the tests, and in the scripts.

Based on #214, land that first.

@isaacs isaacs force-pushed the isaacs/lint-tests-dry-tree-printing branch 3 times, most recently from e014f72 to aa6f437 Compare February 1, 2021 17:13
Copy link
Contributor

@nlf nlf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg yes thank you

This gets rid of all the custom tree-printing and duplicative path
normalization done in all tests, and adds the tests to the set of files
to be linted.
At this point, all tree printing in Arborist for human consumption
should be using the built in Node.toJSON printable methods.

PR-URL: #216
Credit: @isaacs
Close: #216
Reviewed-by: @nlf
@isaacs isaacs force-pushed the isaacs/lint-tests-dry-tree-printing branch from aa6f437 to 977c9e1 Compare February 1, 2021 18:24
@isaacs isaacs closed this in 977c9e1 Feb 1, 2021
@isaacs isaacs merged commit 977c9e1 into main Feb 1, 2021
@wraithgar wraithgar deleted the isaacs/lint-tests-dry-tree-printing branch April 22, 2021 17:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants