mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-09 11:40:32 +08:00
Initial work on the server
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
var common = require('../../common');
|
||||
var connection = common.createConnection();
|
||||
var assert = require('assert');
|
||||
|
||||
var rows = undefined;
|
||||
connection.query('SELECT 1', function(err, _rows) {
|
||||
if (err) throw err;
|
||||
|
||||
rows = _rows;
|
||||
});
|
||||
|
||||
connection.end();
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.deepEqual(rows, [{1: 1}]);
|
||||
});
|
||||
Reference in New Issue
Block a user