Skip to content

Commit e4dc217

Browse files
committed
test: make snapshot deterministic
1 parent 9a3f6de commit e4dc217

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/lib/functions.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,11 @@ test('retrieve set-returning function', async () => {
317317
args: [],
318318
})
319319
expect(res.data).toMatchInlineSnapshot(
320-
{ id: expect.any(Number) },
320+
{
321+
id: expect.any(Number),
322+
return_type_id: expect.any(Number),
323+
return_type_relation_id: expect.any(Number),
324+
},
321325
`
322326
{
323327
"args": [],
@@ -341,8 +345,8 @@ test('retrieve set-returning function', async () => {
341345
"language": "sql",
342346
"name": "function_returning_set_of_rows",
343347
"return_type": "SETOF users",
344-
"return_type_id": 16392,
345-
"return_type_relation_id": 16390,
348+
"return_type_id": Any<Number>,
349+
"return_type_relation_id": Any<Number>,
346350
"schema": "public",
347351
"security_definer": false,
348352
}

0 commit comments

Comments
 (0)