mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Move tests to match source hierarchy.
This commit is contained in:
parent
2b423fe9be
commit
67bd4f373f
@ -27,7 +27,7 @@ module.exports = function(grunt) {
|
|||||||
ui: 'bdd',
|
ui: 'bdd',
|
||||||
reporter: 'tap'
|
reporter: 'tap'
|
||||||
},
|
},
|
||||||
all: { src: ['test/*.js'] }
|
all: { src: ['test/**/*.js'] }
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
options: {
|
options: {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
var should = require("should");
|
var should = require("should");
|
||||||
var RedNode = require("../red/nodes/Node");
|
var RedNode = require("../../../red/nodes/Node");
|
||||||
|
|
||||||
describe('Node', function() {
|
describe('Node', function() {
|
||||||
describe('#constructor',function() {
|
describe('#constructor',function() {
|
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
var should = require("should");
|
var should = require("should");
|
||||||
var when = require("when");
|
var when = require("when");
|
||||||
var flows = require("../red/nodes/flows");
|
var flows = require("../../../red/nodes/flows");
|
||||||
var RedNode = require("../red/nodes/Node");
|
var RedNode = require("../../../red/nodes/Node");
|
||||||
var RED = require("../red/nodes");
|
var RED = require("../../../red/nodes");
|
||||||
var events = require("../red/events");
|
var events = require("../../../red/events");
|
||||||
|
|
||||||
function loadFlows(testFlows, cb) {
|
function loadFlows(testFlows, cb) {
|
||||||
var storage = {
|
var storage = {
|
@ -15,9 +15,9 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
var should = require("should");
|
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() {
|
describe('NodeRegistry', function() {
|
||||||
it('automatically registers new nodes',function() {
|
it('automatically registers new nodes',function() {
|
@ -18,7 +18,7 @@ var should = require("should");
|
|||||||
var fs = require('fs-extra');
|
var fs = require('fs-extra');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
var localfilesystem = require("../red/storage/localfilesystem");
|
var localfilesystem = require("../../../red/storage/localfilesystem");
|
||||||
|
|
||||||
describe('LocalFileSystem', function() {
|
describe('LocalFileSystem', function() {
|
||||||
var userDir = path.join(__dirname,".testUserHome");
|
var userDir = path.join(__dirname,".testUserHome");
|
Loading…
Reference in New Issue
Block a user