10 lines
297 B
JavaScript

'use strict'
// client should not hang on an empty query
const helper = require('../test-helper')
const client = helper.client()
client.query({ name: 'foo1', text: null })
client.query({ name: 'foo2', text: ' ' })
client.query({ name: 'foo3', text: '' }, function (err, res) {
client.end()
})