A Twitch.tv viewer reward and games system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
445 B

var common = require('../../common');
var connection = common.createConnection();
var assert = require('assert');
connection.connect();
var rows = undefined;
var fields = undefined;
connection.query('SELECT 1', function(err, _rows, _fields) {
if (err) throw err;
rows = _rows;
fields = _fields;
});
connection.end();
process.on('exit', function() {
assert.deepEqual(rows, [{1: 1}]);
assert.equal(fields[0].name, '1');
});