mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-11 00:40:31 +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;
|
||||
connection.query('SELECT ""', function(err, _rows) {
|
||||
if (err) throw err;
|
||||
|
||||
rows = _rows;
|
||||
});
|
||||
|
||||
connection.end();
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.deepEqual(rows, [{'': ''}]);
|
||||
});
|
||||
Reference in New Issue
Block a user