Commit 0aee6311 authored by flothoni's avatar flothoni
Browse files

model_test.js; update a test on analysis order field

Link to #4541
parent 667ef5b1
Pipeline #193105 passed with stages
in 12 minutes and 16 seconds
......@@ -358,7 +358,7 @@ QUnit.test("model: analysis sample data application", function(assert) {
dest = {"original_names": ["1", "4", "2"], "val": ["a", "b", "c"], "lav": ["c", "b", "a"]};
src = {"id": ["1", "2", "3"], "val": ["f", "o", "o"]};
var res = m.copySampleFields(dest, src);
var expected = {"original_names": ["1", "4", "2"], "val": ["f", "b", "o"], "lav": ["c", "b", "a"],"order": [2 ],"stock_order": [0, 1, 2 ]};
var expected = {"original_names": ["1", "4", "2"], "val": ["f", "b", "o"], "lav": ["c", "b", "a"],"order": [1],"stock_order": [0, 2, 1]};
assert.deepEqual(res, expected, "copy all relevant fields from analysis to samples");
m.parseJsonData(json_data, 100);
......
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