mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Update a test to pass.
This commit is contained in:
parent
6530ce27fe
commit
23b29c9846
@ -50,14 +50,14 @@ test('bound command', function() {
|
||||
assert.ok(client.connection.emit('readyForQuery'));
|
||||
|
||||
var query = client.query({
|
||||
text: 'select * form X where name = $1',
|
||||
text: 'select * from X where name = $1',
|
||||
values: ['hi']
|
||||
});
|
||||
|
||||
assert.emits(query,'end', function() {
|
||||
test('parse argument', function() {
|
||||
assert.equal(parseArg.name, null);
|
||||
assert.equal(parseArg.text, 'select * where name = $1');
|
||||
assert.equal(parseArg.text, 'select * from X where name = $1');
|
||||
assert.equal(parseArg.types, null);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user