Skip to content

Commit 45893b1

Browse files
committed
chore: fix prettier
1 parent 96f184c commit 45893b1

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

Diff for: test/lib/functions.ts

+20-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { pgMeta } from './utils'
44
test('list', async () => {
55
const res = await pgMeta.functions.list()
66
expect(res.data?.find(({ name }) => name === 'add')).toMatchInlineSnapshot(
7-
{ id: expect.any(Number) }, `
7+
{ id: expect.any(Number) },
8+
`
89
{
910
"args": [
1011
{
@@ -46,7 +47,8 @@ test('list', async () => {
4647
"schema": "public",
4748
"security_definer": false,
4849
}
49-
`)
50+
`
51+
)
5052
})
5153

5254
test('list set-returning function with single object limit', async () => {
@@ -232,7 +234,8 @@ test('retrieve, create, update, delete', async () => {
232234
config_params: { search_path: 'hooks, auth', role: 'postgres' },
233235
})
234236
expect(res).toMatchInlineSnapshot(
235-
{ data: { id: expect.any(Number) } }, `
237+
{ data: { id: expect.any(Number) } },
238+
`
236239
{
237240
"data": {
238241
"args": [
@@ -282,10 +285,12 @@ test('retrieve, create, update, delete', async () => {
282285
},
283286
"error": null,
284287
}
285-
`)
288+
`
289+
)
286290
res = await pgMeta.functions.retrieve({ id: res.data!.id })
287291
expect(res).toMatchInlineSnapshot(
288-
{ data: { id: expect.any(Number) } }, `
292+
{ data: { id: expect.any(Number) } },
293+
`
289294
{
290295
"data": {
291296
"args": [
@@ -335,14 +340,16 @@ test('retrieve, create, update, delete', async () => {
335340
},
336341
"error": null,
337342
}
338-
`)
343+
`
344+
)
339345
res = await pgMeta.functions.update(res.data!.id, {
340346
name: 'test_func_renamed',
341347
schema: 'test_schema',
342348
definition: 'select b - a',
343349
})
344350
expect(res).toMatchInlineSnapshot(
345-
{ data: { id: expect.any(Number) } }, `
351+
{ data: { id: expect.any(Number) } },
352+
`
346353
{
347354
"data": {
348355
"args": [
@@ -392,10 +399,12 @@ test('retrieve, create, update, delete', async () => {
392399
},
393400
"error": null,
394401
}
395-
`)
402+
`
403+
)
396404
res = await pgMeta.functions.remove(res.data!.id)
397405
expect(res).toMatchInlineSnapshot(
398-
{ data: { id: expect.any(Number) } }, `
406+
{ data: { id: expect.any(Number) } },
407+
`
399408
{
400409
"data": {
401410
"args": [
@@ -445,7 +454,8 @@ test('retrieve, create, update, delete', async () => {
445454
},
446455
"error": null,
447456
}
448-
`)
457+
`
458+
)
449459
res = await pgMeta.functions.retrieve({ id: res.data!.id })
450460
expect(res).toMatchObject({
451461
data: null,

0 commit comments

Comments
 (0)