add missing tests

This commit is contained in:
Josh de Leeuw 2018-01-03 14:25:45 -05:00
parent 2857a9022e
commit b9dcae5b01
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,17 @@
const root = '../../';
const utils = require('../testing-utils.js');
jest.useFakeTimers();
describe('categorize-html plugin', function(){
beforeEach(function(){
require(root + 'jspsych.js');
require(root + 'plugins/jspsych-categorize-html.js');
});
test('loads correctly', function(){
expect(typeof window.jsPsych.plugins['categorize-html']).not.toBe('undefined');
});
});

View File

@ -0,0 +1,17 @@
const root = '../../';
const utils = require('../testing-utils.js');
jest.useFakeTimers();
describe('categorize-image plugin', function(){
beforeEach(function(){
require(root + 'jspsych.js');
require(root + 'plugins/jspsych-categorize-image.js');
});
test('loads correctly', function(){
expect(typeof window.jsPsych.plugins['categorize-image']).not.toBe('undefined');
});
});

View File

@ -0,0 +1,17 @@
const root = '../../';
const utils = require('../testing-utils.js');
jest.useFakeTimers();
describe('same-different-html plugin', function(){
beforeEach(function(){
require(root + 'jspsych.js');
require(root + 'plugins/jspsych-same-different-html.js');
});
test('loads correctly', function(){
expect(typeof window.jsPsych.plugins['same-different-html']).not.toBe('undefined');
});
});

View File

@ -0,0 +1,17 @@
const root = '../../';
const utils = require('../testing-utils.js');
jest.useFakeTimers();
describe('same-different-image plugin', function(){
beforeEach(function(){
require(root + 'jspsych.js');
require(root + 'plugins/jspsych-same-different-image.js');
});
test('loads correctly', function(){
expect(typeof window.jsPsych.plugins['same-different-image']).not.toBe('undefined');
});
});