Commit e9f3df50 authored by flothoni's avatar flothoni Committed by Mathieu Giraud

test; make a copy of an object before use

parent 367a9718
......@@ -610,7 +610,8 @@ QUnit.test("computeOrderWithStock", function(assert) {
QUnit.test("getSampleWithSelectedClones", function(assert) {
var m = new Model();
m.parseJsonData(json_data, 100)
var data_copy = JSON.parse(JSON.stringify(json_data));
m.parseJsonData(data_copy, 100)
m.initClones()
// clone 1 present only in sample 1 and 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment