Skip to content

Commit

Permalink
Add test case disproving mysqljs#106
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Sep 6, 2011
1 parent 563a9b7 commit 5af2938
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/fast/test-client.js
Expand Up @@ -16,6 +16,13 @@ test('#format() does not manipulate params parameter', function() {
assert.equal(params.length, 1);
});

test('#format() does not quote floats', function() {
var params = [1.23];

var sql = client.format('?', params);
assert.strictEqual(sql, '1.23');
});

// https://github.com/felixge/node-mysql/issues/96
test('Timeout reconnect works with empty queue', function() {
// A non-error packet
Expand Down

0 comments on commit 5af2938

Please sign in to comment.