Commit 88e1bd77 authored by flothoni's avatar flothoni

test; make a copy of an object before use

parent 9c0873da
Pipeline #139111 passed with stages
in 9 minutes and 4 seconds
......@@ -611,7 +611,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