jsPsych/tests/plugins/button-response.test.js
2017-06-13 09:58:35 -04:00

16 lines
329 B
JavaScript

const root = '../../';
jest.useFakeTimers();
describe('iat plugin', function(){
beforeEach(function(){
require(root + 'jspsych.js');
require(root + 'plugins/jspsych-button-response.js');
});
test('loads correctly', function(){
expect(typeof window.jsPsych.plugins['button-response']).not.toBe('undefined');
});
});