diff --git a/tests/jsPsych.data/data-csv-conversion.test.js b/tests/jsPsych.data/data-csv-conversion.test.js index 748d6f39..f5d87d7b 100644 --- a/tests/jsPsych.data/data-csv-conversion.test.js +++ b/tests/jsPsych.data/data-csv-conversion.test.js @@ -54,8 +54,8 @@ describe('data conversion to csv', function(){ utils.pressKey('q'); expect(jsPsych.getDisplayElement().innerHTML).toBe(''); - var csv_data = jsPsych.data.get().ignore(['rt','internal_node_id','time_elapsed','trial_type','rt_stim1','key_press_stim1']).csv(); - expect(csv_data).toBe('"answer","correct","stimulus","key_press","trial_index"\r\n"different","false","[""
Climbing
"",""Walking
""]","q","0"\r\n') + var csv_data = jsPsych.data.get().ignore(['rt','internal_node_id','time_elapsed','trial_type','rt_stim1','response_stim1']).csv(); + expect(csv_data).toBe('"answer","correct","stimulus","response","trial_index"\r\n"different","false","[""Climbing
"",""Walking
""]","q","0"\r\n') }) test('survey-multi-select response array is correctly converted', function(){ diff --git a/tests/jsPsych.data/data-json-conversion.test.js b/tests/jsPsych.data/data-json-conversion.test.js index e5658926..f80b7c02 100644 --- a/tests/jsPsych.data/data-json-conversion.test.js +++ b/tests/jsPsych.data/data-json-conversion.test.js @@ -55,8 +55,8 @@ describe('data conversion to json', function(){ utils.pressKey('q'); expect(jsPsych.getDisplayElement().innerHTML).toBe(''); - var json_data = jsPsych.data.get().ignore(['rt','internal_node_id','time_elapsed','trial_type','rt_stim1','key_press_stim1']).json(); - expect(json_data).toBe(JSON.stringify([{answer: 'different', correct: false, stimulus: ['Climbing
','Walking
'], key_press: 'q', trial_index: 0}])); + var json_data = jsPsych.data.get().ignore(['rt','internal_node_id','time_elapsed','trial_type','rt_stim1','response_stim1']).json(); + expect(json_data).toBe(JSON.stringify([{answer: 'different', correct: false, stimulus: ['Climbing
','Walking
'], response: 'q', trial_index: 0}])); }) test('survey-multi-select response array is correctly converted', function(){