mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
modify test
This commit is contained in:
parent
05b255dc5c
commit
cf5306d9f6
@ -12,6 +12,7 @@ describe('#addProperties', function(){
|
|||||||
document.dispatchEvent(new KeyboardEvent('keydown', {keyCode: 32}));
|
document.dispatchEvent(new KeyboardEvent('keydown', {keyCode: 32}));
|
||||||
document.dispatchEvent(new KeyboardEvent('keyup', {keyCode: 32}));
|
document.dispatchEvent(new KeyboardEvent('keyup', {keyCode: 32}));
|
||||||
// check if data contains testprop
|
// check if data contains testprop
|
||||||
|
expect(jsPsych.data.getData().select('rt').count()).toBe(1);
|
||||||
expect(jsPsych.data.getData().select('testprop').count()).toBe(1);
|
expect(jsPsych.data.getData().select('testprop').count()).toBe(1);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user