mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
organize tests
This commit is contained in:
parent
24798f8b3a
commit
b9a5ffde2f
@ -1,4 +1,6 @@
|
||||
require('../jspsych.js');
|
||||
const root = '../../';
|
||||
|
||||
require(root + 'jspsych.js');
|
||||
|
||||
var data = [
|
||||
{rt: 100, filter: true},
|
@ -1,4 +1,6 @@
|
||||
require('../jspsych.js');
|
||||
const root = '../../';
|
||||
|
||||
require(root + 'jspsych.js');
|
||||
|
||||
var data = [
|
||||
{rt: 100, filter: true},
|
@ -1,5 +1,8 @@
|
||||
require('../jspsych.js');
|
||||
require('../plugins/jspsych-text.js');
|
||||
const root = '../../';
|
||||
|
||||
require(root + 'jspsych.js');
|
||||
|
||||
require(root + 'plugins/jspsych-text.js');
|
||||
|
||||
describe('Basic data recording', function(){
|
||||
test('should be able to get rt after running experiment', function(){
|
@ -1,4 +1,6 @@
|
||||
require('../jspsych.js');
|
||||
const root = '../../';
|
||||
|
||||
require(root + 'jspsych.js');
|
||||
|
||||
describe('#getKeyboardResponse', function(){
|
||||
test('should execute a function after successful keypress', function(){
|
@ -1,4 +1,7 @@
|
||||
require('../jspsych.js');
|
||||
const root = '../../';
|
||||
|
||||
require(root + 'jspsych.js');
|
||||
|
||||
|
||||
describe('#shuffle', function(){
|
||||
test('should produce fixed order with mock RNG', function(){
|
@ -1,5 +1,7 @@
|
||||
require('../jspsych.js');
|
||||
require('../plugins/jspsych-single-stim.js');
|
||||
const root = '../../';
|
||||
|
||||
require(root + 'jspsych.js');
|
||||
require(root + 'plugins/jspsych-single-stim.js');
|
||||
|
||||
test('jsPsych should be in the window object', function(){
|
||||
expect(typeof window.jsPsych).not.toBe('undefined');
|
Loading…
Reference in New Issue
Block a user