organize tests

This commit is contained in:
Josh de Leeuw 2017-01-15 15:43:00 -05:00
parent 24798f8b3a
commit b9a5ffde2f
7 changed files with 22 additions and 8 deletions

View File

@ -1,4 +1,6 @@
require('../jspsych.js');
const root = '../../';
require(root + 'jspsych.js');
var data = [
{rt: 100, filter: true},

View File

@ -1,4 +1,6 @@
require('../jspsych.js');
const root = '../../';
require(root + 'jspsych.js');
var data = [
{rt: 100, filter: true},

View File

@ -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(){

View File

@ -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(){

View File

@ -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(){

View File

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