summaryrefslogtreecommitdiffstats
path: root/webapp/tests/utils_get_nearest_point.test.jsx
diff options
context:
space:
mode:
authorDebanshu Kundu <debanshu.kundu@joshtechnologygroup.com>2017-03-02 23:17:27 +0530
committerenahum <nahumhbl@gmail.com>2017-03-02 14:47:27 -0300
commit47114a18e3d6dc2090beeb43d03f865d6436a99a (patch)
treeb7126d5cb3bd025eb62228af0cb0f7994964c6fa /webapp/tests/utils_get_nearest_point.test.jsx
parentd9a297d6291838e08a4acdbd603c35601c0e9878 (diff)
downloadchat-47114a18e3d6dc2090beeb43d03f865d6436a99a.tar.gz
chat-47114a18e3d6dc2090beeb43d03f865d6436a99a.tar.bz2
chat-47114a18e3d6dc2090beeb43d03f865d6436a99a.zip
PLT-5380 Moved link preview image to top right corner of preview area (#5212)
* PLT-5380 Moved link preview image to top right corner of preview area for smaller images, larger and wide images are still shown below the text. Also added logic to hide image area if image loading fails. * Updating link previews css
Diffstat (limited to 'webapp/tests/utils_get_nearest_point.test.jsx')
-rw-r--r--webapp/tests/utils_get_nearest_point.test.jsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/webapp/tests/utils_get_nearest_point.test.jsx b/webapp/tests/utils_get_nearest_point.test.jsx
index b0b0a2e0e..02ca29cc3 100644
--- a/webapp/tests/utils_get_nearest_point.test.jsx
+++ b/webapp/tests/utils_get_nearest_point.test.jsx
@@ -24,12 +24,10 @@ describe('CommonUtils.getNearestPoint', function() {
nearestPointLte: {x: 1, y: 1}
}
]) {
- const nearestPointData = CommonUtils.getNearestPoint(data.pivotPoint, data.points);
+ const nearestPoint = CommonUtils.getNearestPoint(data.pivotPoint, data.points);
- assert.equal(nearestPointData.nearestPoint.x, data.nearestPoint.x);
- assert.equal(nearestPointData.nearestPoint.y, data.nearestPoint.y);
- assert.equal(nearestPointData.nearestPointLte.x, data.nearestPointLte.x);
- assert.equal(nearestPointData.nearestPointLte.y, data.nearestPointLte.y);
+ assert.equal(nearestPoint.x, data.nearestPoint.x);
+ assert.equal(nearestPoint.y, data.nearestPoint.y);
}
});
});