Skip to content

Commit

Permalink
docs: remove references to ?
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Feb 9, 2019
1 parent 6a541ea commit 2020c93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/templateTags/sql/sql.js
Expand Up @@ -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: []
});
});
Expand All @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions test/utilities/mapTaggedTemplateLiteralInvocation.js
Expand Up @@ -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']);
});

Expand All @@ -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']);
});

Expand Down

0 comments on commit 2020c93

Please sign in to comment.