diff --git a/tests/plugins/plugin-categorize-html.test.js b/tests/plugins/plugin-categorize-html.test.js new file mode 100644 index 00000000..b05c59e5 --- /dev/null +++ b/tests/plugins/plugin-categorize-html.test.js @@ -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'); + }); + +}); diff --git a/tests/plugins/plugin-categorize-image.test.js b/tests/plugins/plugin-categorize-image.test.js new file mode 100644 index 00000000..208c7c46 --- /dev/null +++ b/tests/plugins/plugin-categorize-image.test.js @@ -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'); + }); + +}); diff --git a/tests/plugins/plugin-same-different-html.test.js b/tests/plugins/plugin-same-different-html.test.js new file mode 100644 index 00000000..a6239f44 --- /dev/null +++ b/tests/plugins/plugin-same-different-html.test.js @@ -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'); + }); + +}); diff --git a/tests/plugins/plugin-same-different-image.test.js b/tests/plugins/plugin-same-different-image.test.js new file mode 100644 index 00000000..e5e73547 --- /dev/null +++ b/tests/plugins/plugin-same-different-image.test.js @@ -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'); + }); + +});