update test for #403

This commit is contained in:
Josh de Leeuw 2017-06-26 12:11:51 -04:00
parent a70a858526
commit 6175ee82f7
2 changed files with 16 additions and 16 deletions

View File

@ -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');
});
});

View 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');
});
});