mirror of
https://github.com/sstent/node.git
synced 2026-01-26 15:12:37 +00:00
24 lines
499 B
JavaScript
24 lines
499 B
JavaScript
var mysql = require('..');
|
|
var path = require('path');
|
|
|
|
var root = path.join(__dirname, '../');
|
|
exports.dir = {
|
|
root: root,
|
|
lib: root + '/lib',
|
|
fixture: root + '/test/fixture',
|
|
};
|
|
|
|
exports.TEST_DB = 'node_mysql_test';
|
|
exports.TEST_TABLE = 'posts';
|
|
|
|
exports.createClient = function() {
|
|
try {
|
|
var config = require('./config');
|
|
} catch (e) {
|
|
console.log('Skipping. See test/config.template.js for more information.');
|
|
process.exit(0);
|
|
}
|
|
|
|
return mysql.createClient(config);
|
|
};
|