mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
add missing tests
This commit is contained in:
parent
2857a9022e
commit
b9dcae5b01
17
tests/plugins/plugin-categorize-html.test.js
Normal file
17
tests/plugins/plugin-categorize-html.test.js
Normal 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');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
17
tests/plugins/plugin-categorize-image.test.js
Normal file
17
tests/plugins/plugin-categorize-image.test.js
Normal 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');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
17
tests/plugins/plugin-same-different-html.test.js
Normal file
17
tests/plugins/plugin-same-different-html.test.js
Normal 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');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
17
tests/plugins/plugin-same-different-image.test.js
Normal file
17
tests/plugins/plugin-same-different-image.test.js
Normal 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');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user