Skip to content

Commit 2064f28

Browse files
committed
Export JSON with higher precision in tests, so comparisons of bounds do not fail.
1 parent 6063892 commit 2064f28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/tests/JSON.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
module('JSON');
1414

1515
function testExportImportJson(project) {
16-
var json = project.exportJson();
16+
// Use higher precision than in comparissons, for bounds
17+
var json = project.exportJson({ precision: 8 });
1718
var project2 = new Project();
1819
project2.activeLayer.remove();
1920
project2.importJson(json);

0 commit comments

Comments
 (0)