Skip to content

Commit 746ec7e

Browse files
committed
add lassoPoints assertions
1 parent 70de159 commit 746ec7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/jasmine/tests/select_test.js

+5
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ describe('select box and lasso', function() {
284284
y: 2.75,
285285
}], 'with the correct selected points (2)');
286286

287+
expect(selectedData.lassoPoints.x).toBeCloseToArray(
288+
[0.084, 0.087, 0.115, 0.103], 'lasso points x coords');
289+
expect(selectedData.lassoPoints.y).toBeCloseToArray(
290+
[4.648, 1.342, 1.247, 4.821], 'lasso points y coords');
291+
287292
doubleClick(250, 200).then(function() {
288293
expect(doubleClickData).toBe(null, 'with the correct deselect data');
289294
done();

0 commit comments

Comments
 (0)