Skip to content

Commit

Permalink
Please eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Nov 16, 2022
1 parent 6a4801f commit b20d978
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions cjs/tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ t('Transform nested json in arrays', async() => {
return ['aBcD', (await sql`select '[{"a_b":1},{"c_d":2}]'::jsonb as x`)[0].x.map(Object.keys).join('')]
})

t('Bypass transform for json primitive', async () => {
t('Bypass transform for json primitive', async() => {
const sql = postgres({
...options,
transform: postgres.camel,
transform: postgres.camel
})

const x = (
Expand All @@ -623,14 +623,14 @@ t('Bypass transform for json primitive', async () => {

return [
JSON.stringify({ a: null, b: false, c: 'a', d: 1 }),
JSON.stringify(x),
JSON.stringify(x)
]
})

t('Bypass transform for jsonb primitive', async () => {
t('Bypass transform for jsonb primitive', async() => {
const sql = postgres({
...options,
transform: postgres.camel,
transform: postgres.camel
})

const x = (
Expand All @@ -639,7 +639,7 @@ t('Bypass transform for jsonb primitive', async () => {

return [
JSON.stringify({ a: null, b: false, c: 'a', d: 1 }),
JSON.stringify(x),
JSON.stringify(x)
]
})

Expand Down
12 changes: 6 additions & 6 deletions deno/tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,10 @@ t('Transform nested json in arrays', async() => {
return ['aBcD', (await sql`select '[{"a_b":1},{"c_d":2}]'::jsonb as x`)[0].x.map(Object.keys).join('')]
})

t('Bypass transform for json primitive', async () => {
t('Bypass transform for json primitive', async() => {
const sql = postgres({
...options,
transform: postgres.camel,
transform: postgres.camel
})

const x = (
Expand All @@ -625,14 +625,14 @@ t('Bypass transform for json primitive', async () => {

return [
JSON.stringify({ a: null, b: false, c: 'a', d: 1 }),
JSON.stringify(x),
JSON.stringify(x)
]
})

t('Bypass transform for jsonb primitive', async () => {
t('Bypass transform for jsonb primitive', async() => {
const sql = postgres({
...options,
transform: postgres.camel,
transform: postgres.camel
})

const x = (
Expand All @@ -641,7 +641,7 @@ t('Bypass transform for jsonb primitive', async () => {

return [
JSON.stringify({ a: null, b: false, c: 'a', d: 1 }),
JSON.stringify(x),
JSON.stringify(x)
]
})

Expand Down
12 changes: 6 additions & 6 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ t('Transform nested json in arrays', async() => {
return ['aBcD', (await sql`select '[{"a_b":1},{"c_d":2}]'::jsonb as x`)[0].x.map(Object.keys).join('')]
})

t('Bypass transform for json primitive', async () => {
t('Bypass transform for json primitive', async() => {
const sql = postgres({
...options,
transform: postgres.camel,
transform: postgres.camel
})

const x = (
Expand All @@ -623,14 +623,14 @@ t('Bypass transform for json primitive', async () => {

return [
JSON.stringify({ a: null, b: false, c: 'a', d: 1 }),
JSON.stringify(x),
JSON.stringify(x)
]
})

t('Bypass transform for jsonb primitive', async () => {
t('Bypass transform for jsonb primitive', async() => {
const sql = postgres({
...options,
transform: postgres.camel,
transform: postgres.camel
})

const x = (
Expand All @@ -639,7 +639,7 @@ t('Bypass transform for jsonb primitive', async () => {

return [
JSON.stringify({ a: null, b: false, c: 'a', d: 1 }),
JSON.stringify(x),
JSON.stringify(x)
]
})

Expand Down

0 comments on commit b20d978

Please sign in to comment.