diff --git a/tests/jsPsych/timelines.test.js b/tests/jsPsych/timelines.test.js index 36082186..e501f3e4 100644 --- a/tests/jsPsych/timelines.test.js +++ b/tests/jsPsych/timelines.test.js @@ -438,7 +438,7 @@ describe('nested timelines', function() { describe('add node to end of timeline', function(){ - test('adds node to end of timeline, without callback', function() { + test('adds node to end of timeline', function() { var new_trial = { type: 'html-keyboard-response', stimulus: 'bar' @@ -468,31 +468,5 @@ describe('add node to end of timeline', function(){ utils.pressKey('a'); }); - test('adds node to end of timeline, with callback', function() { - var t = { - type: 'html-keyboard-response', - stimulus: 'foo', - on_finish: function(){ - jsPsych.pauseExperiment(); - jsPsych.addNodeToEndOfTimeline({ - timeline: [{ - type: 'html-keyboard-response', - stimulus: 'bar' - }] - }, jsPsych.resumeExperiment) - } - }; - - jsPsych.init({ - timeline: [t] - }); - - expect(jsPsych.getDisplayElement().innerHTML).toMatch('foo'); - utils.pressKey('a'); - expect(jsPsych.getDisplayElement().innerHTML).toMatch('bar'); - utils.pressKey('a'); - - }); - });