Skip to content

Commit d8e472a

Browse files
committed
snaps
1 parent 5b99b48 commit d8e472a

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

packages/utils/__test__/__snapshots__/utils.test.ts.snap

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,72 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`asts 1`] = `
4+
{
5+
"CreateStmt": {
6+
"accessMethod": undefined,
7+
"constraints": undefined,
8+
"if_not_exists": undefined,
9+
"inhRelations": undefined,
10+
"ofTypename": undefined,
11+
"oncommit": undefined,
12+
"options": undefined,
13+
"partbound": undefined,
14+
"partspec": undefined,
15+
"relation": {
16+
"RangeVar": {
17+
"alias": undefined,
18+
"catalogname": undefined,
19+
"inh": undefined,
20+
"location": undefined,
21+
"relname": "new_table",
22+
"relpersistence": undefined,
23+
"schemaname": undefined,
24+
},
25+
},
26+
"tableElts": [
27+
{
28+
"ColumnDef": {
29+
"collClause": undefined,
30+
"collOid": undefined,
31+
"colname": "id",
32+
"constraints": undefined,
33+
"cooked_default": undefined,
34+
"fdwoptions": undefined,
35+
"generated": undefined,
36+
"identity": undefined,
37+
"identitySequence": undefined,
38+
"inhcount": undefined,
39+
"is_from_type": undefined,
40+
"is_local": undefined,
41+
"is_not_null": undefined,
42+
"location": undefined,
43+
"raw_default": undefined,
44+
"storage": undefined,
45+
"typeName": {
46+
"arrayBounds": undefined,
47+
"location": undefined,
48+
"names": [
49+
{
50+
"String": {
51+
"str": "int4",
52+
},
53+
},
54+
],
55+
"pct_type": undefined,
56+
"setof": undefined,
57+
"typeOid": undefined,
58+
"typemod": undefined,
59+
"typmods": undefined,
60+
},
61+
},
62+
},
63+
],
64+
"tablespacename": undefined,
65+
},
66+
}
67+
`;
68+
69+
exports[`asts 2`] = `
470
"CREATE TABLE (
571
id int4
672
) INHERITS ( )"

packages/utils/__test__/utils.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ it('asts', () => {
2626
}),
2727
tableElts: [newColumn]
2828
})
29+
expect(createStmt).toMatchSnapshot();
2930
expect(deparse(createStmt, {})).toMatchSnapshot();
3031
});

0 commit comments

Comments
 (0)