mirror of
https://github.com/sstent/node.git
synced 2026-01-27 07:33:13 +00:00
first post
This commit is contained in:
23
Nodejs-Socketio-Mysql-Demo/node_modules/mysql/test/common.js
generated
vendored
Normal file
23
Nodejs-Socketio-Mysql-Demo/node_modules/mysql/test/common.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user