mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
update test for #403
This commit is contained in:
parent
a70a858526
commit
6175ee82f7
@ -1,16 +0,0 @@
|
||||
const root = '../../';
|
||||
|
||||
jest.useFakeTimers();
|
||||
|
||||
describe('similarity plugin', function(){
|
||||
|
||||
beforeEach(function(){
|
||||
require(root + 'jspsych.js');
|
||||
require(root + 'plugins/jspsych-similarity.js');
|
||||
});
|
||||
|
||||
test('loads correctly', function(){
|
||||
expect(typeof window.jsPsych.plugins['similarity']).not.toBe('undefined');
|
||||
});
|
||||
|
||||
});
|
16
tests/plugins/plugin-survey-slider.test.js
Normal file
16
tests/plugins/plugin-survey-slider.test.js
Normal file
@ -0,0 +1,16 @@
|
||||
const root = '../../';
|
||||
|
||||
jest.useFakeTimers();
|
||||
|
||||
describe('survey-slider plugin', function(){
|
||||
|
||||
beforeEach(function(){
|
||||
require(root + 'jspsych.js');
|
||||
require(root + 'plugins/jspsych-survey-slider.js');
|
||||
});
|
||||
|
||||
test('loads correctly', function(){
|
||||
expect(typeof window.jsPsych.plugins['survey-slider']).not.toBe('undefined');
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user