Skip to content
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

Merged
merged 2 commits into from
Jul 28, 2017

Conversation

rndstr
Copy link
Contributor

@rndstr rndstr commented Jul 24, 2017

Follow-up to #2728

@rndstr rndstr requested a review from fbarl July 24, 2017 17:51
Copy link
Contributor

@fbarl fbarl left a 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.

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.

@rndstr rndstr force-pushed the 2401-pods-number-not-updating-on-labelMinor branch from 0c26d12 to 90995b9 Compare July 25, 2017 14:34
@rndstr rndstr force-pushed the 2401-pods-number-not-updating-on-labelMinor branch from 90995b9 to 66d490b Compare July 25, 2017 15:06
@rndstr
Copy link
Contributor Author

rndstr commented Jul 28, 2017

@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.

This comment was marked as abuse.

Copy link
Contributor

@fbarl fbarl left a comment

Choose a reason for hiding this comment

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

LGTM!

@rndstr rndstr merged commit c3c23d7 into master Jul 28, 2017
@rndstr rndstr deleted the 2401-pods-number-not-updating-on-labelMinor branch July 28, 2017 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants