Skip to content

Commit

Permalink
Move legacy unit tests into unit folder
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Nov 26, 2011
1 parent 9e262f8 commit 93f9335
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/legacy/common.js → test/unit/legacy/common.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
var newCommon = require('../common');
var newCommon = require('../../common');
exports.dir = newCommon.dir;

var path = require('path');
var util = require('util');

var parent = module.parent.filename;
if (parent.match(/system/) || parent.match(/benchmark/)) {
try {
global.TEST_CONFIG = require('../config');
} catch (e) {
console.log('Skipping. See test/config.template.js for more information.');
process.exit(0);
}
}

global.TEST_DB = 'node_mysql_test';
global.TEST_TABLE = 'posts';
global.TEST_FIXTURES = path.join(__dirname, '../fixture');
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 93f9335

Please sign in to comment.