Move tests to match source hierarchy.

This commit is contained in:
Mark Hindess 2014-07-17 08:06:30 +01:00
parent 2b423fe9be
commit 67bd4f373f
6 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ module.exports = function(grunt) {
ui: 'bdd',
reporter: 'tap'
},
all: { src: ['test/*.js'] }
all: { src: ['test/**/*.js'] }
},
jshint: {
options: {

View File

@ -15,7 +15,7 @@
**/
var should = require("should");
var RedNode = require("../red/nodes/Node");
var RedNode = require("../../../red/nodes/Node");
describe('Node', function() {
describe('#constructor',function() {

View File

@ -16,10 +16,10 @@
var should = require("should");
var when = require("when");
var flows = require("../red/nodes/flows");
var RedNode = require("../red/nodes/Node");
var RED = require("../red/nodes");
var events = require("../red/events");
var flows = require("../../../red/nodes/flows");
var RedNode = require("../../../red/nodes/Node");
var RED = require("../../../red/nodes");
var events = require("../../../red/events");
function loadFlows(testFlows, cb) {
var storage = {

View File

@ -15,9 +15,9 @@
**/
var should = require("should");
var RedNodes = require("../red/nodes");
var RedNodes = require("../../../red/nodes");
var RedNode = require("../red/nodes/Node");
var RedNode = require("../../../red/nodes/Node");
describe('NodeRegistry', function() {
it('automatically registers new nodes',function() {

View File

@ -18,7 +18,7 @@ var should = require("should");
var fs = require('fs-extra');
var path = require('path');
var localfilesystem = require("../red/storage/localfilesystem");
var localfilesystem = require("../../../red/storage/localfilesystem");
describe('LocalFileSystem', function() {
var userDir = path.join(__dirname,".testUserHome");