-
Notifications
You must be signed in to change notification settings - Fork 712
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
Add test for pods number not updating #2741
Conversation
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.
Left some suggestions, otherwise looks good!
@@ -481,7 +481,8 @@ export function doLayout(immNodes, immEdges, opts) { | |||
|
|||
if (layout) { | |||
// Last line of defense - re-render everything if two nodes are too close to one another. | |||
if (minEuclideanDistanceBetweenPoints(layout.nodes) < NODE_CENTERS_SEPARATION_FACTOR) { | |||
if (layout.nodes.count() > 1 && |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
nodes = second.nodes.toJS(); | ||
expect(nodes.n1.label).toEqual('lnew'); | ||
expect(nodes.n1.labelMinor).toEqual('lmnew'); | ||
expect(nodes.n1.rank).toEqual('rold'); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
0c26d12
to
90995b9
Compare
90995b9
to
66d490b
Compare
@fbarl good suggestions, mind taking another look? |
}, | ||
layoutProps: { | ||
nodes: fromJS({ | ||
n1: {id: 'n1', label: 'lold', labelMinor: 'lmold', rank: 'rold'}, |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
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.
LGTM!
Follow-up to #2728