-
Notifications
You must be signed in to change notification settings - Fork 222
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
Refactor guide line layer - Pass 1 #2666
Conversation
assert.strictEqual(gll.width(), SVG_WIDTH, "accepted all offered width"); | ||
assert.strictEqual(gll.height(), SVG_HEIGHT, "accepted all offered height"); | ||
svg.remove(); | ||
describe("Interactive Components", () => { |
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.
GuideLineLayer
isn't interactive, since it doesn't include an Interaction
, so I don't think it belongs in this describe()
.
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.
Then let's find an umbrella for all of them. Layer Components
? It should include
dragBoxLayerTests.ts
guidelinesLayerTests.ts
selectionBoxLayerTests.ts
xDragBoxLayerTests.ts
yDragBoxLayerTests.ts
describe("Rendering (vertical)", () => { | ||
const SVG_WIDTH = 400; | ||
const SVG_HEIGHT = 300; | ||
const GUIDE_LINE_CLASS = "." + "guide-line"; |
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.
Can we look into setting up a TSLint rule for having const
on variables with ALL_CAPS naming?
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.
There is none.
Opened palantir/tslint#604 |
I will convert back to |
Refactor guide line layer - Pass 1
Part of #2623
I will be doing 2 passes because I will get more context (and better sense of best practices) by refactoring other files. However, please flag anything that seems unusual.
As part of this:
beforeEach()
clausesbeforeEach()
es