jsPsych/tests/plugins/plugin-free-sort.test.js
2017-06-13 22:01:07 -04:00

17 lines
324 B
JavaScript

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