From 2020c932905511f8534f7b9a243b710b821b0b67 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Sat, 9 Feb 2019 03:20:10 +0000 Subject: [PATCH] docs: remove references to ? --- test/templateTags/sql/sql.js | 4 ++-- test/utilities/mapTaggedTemplateLiteralInvocation.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/templateTags/sql/sql.js b/test/templateTags/sql/sql.js index 6c3dfa2e..2f54942f 100644 --- a/test/templateTags/sql/sql.js +++ b/test/templateTags/sql/sql.js @@ -7,7 +7,7 @@ test('creates an object describing a query', (t) => { const query = sql`SELECT 1`; t.deepEqual(query, { - sql: 'SELECT $1', + sql: 'SELECT 1', values: [] }); }); @@ -27,7 +27,7 @@ test('creates an object describing query value bindings (multiple)', (t) => { const query = sql`SELECT ${'foo'} FROM ${'bar'}`; t.deepEqual(query, { - sql: 'SELECT $1 FROM $1', + sql: 'SELECT $1 FROM $2', values: [ 'foo', 'bar' diff --git a/test/utilities/mapTaggedTemplateLiteralInvocation.js b/test/utilities/mapTaggedTemplateLiteralInvocation.js index b477a6e1..50c40226 100644 --- a/test/utilities/mapTaggedTemplateLiteralInvocation.js +++ b/test/utilities/mapTaggedTemplateLiteralInvocation.js @@ -25,7 +25,7 @@ test('sql tag invocation with expressions', (t) => { t.true(spy.calledOnce); - t.true(spy.firstCall.args[0] === 'foo ?'); + t.true(spy.firstCall.args[0] === 'foo $1'); t.deepEqual(spy.firstCall.args[1], ['bar']); }); @@ -47,7 +47,7 @@ test('sql tag invocation with expressions and values', (t) => { t.true(spy.calledOnce); - t.true(spy.firstCall.args[0] === 'foo ?'); + t.true(spy.firstCall.args[0] === 'foo $1'); t.deepEqual(spy.firstCall.args[1], ['bar1', 'bar2']); });