Skip to content

Commit a6a7a39

Browse files
chore: fix merge issues
1 parent 960aded commit a6a7a39

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/genSchema/generateTableSchema.test.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ describe('generateTableSchema', () => {
1313
'DEFINE TABLE test TYPE ANY SCHEMAFULL PERMISSIONS NONE',
1414
)
1515

16-
expect(inputFields).toBe('const testInputSchemaGen = z.object({\n name: z.string()\n})')
16+
expect(inputFields).toBe('const testInputSchemaGen = z.object({\nname: z.string(),\n})')
1717

18-
expect(outputFields).toBe('const testOutputSchemaGen = z.object({\n name: z.string()\n})')
18+
expect(outputFields).toBe('const testOutputSchemaGen = z.object({\nname: z.string(),\n})')
1919
})
2020

2121
it('generates a schema for a SCHEMALESS table', async () => {
@@ -24,9 +24,9 @@ describe('generateTableSchema', () => {
2424
'DEFINE TABLE test TYPE ANY SCHEMALESS PERMISSIONS NONE',
2525
)
2626

27-
expect(inputFields).toBe('const testInputSchemaGen = z.object({\n name: z.string()\n}).passthrough()')
27+
expect(inputFields).toBe('const testInputSchemaGen = z.object({\nname: z.string(),\n}).passthrough()')
2828

29-
expect(outputFields).toBe('const testOutputSchemaGen = z.object({\n name: z.string()\n}).passthrough()')
29+
expect(outputFields).toBe('const testOutputSchemaGen = z.object({\nname: z.string(),\n}).passthrough()')
3030
})
3131

3232
it('generates a schema for a table without explicit SCHEMAFULL/SCHEMALESS setting', async () => {
@@ -35,8 +35,8 @@ describe('generateTableSchema', () => {
3535
'DEFINE TABLE test TYPE ANY PERMISSIONS NONE',
3636
)
3737

38-
expect(inputFields).toBe('const testInputSchemaGen = z.object({\n name: z.string()\n}).passthrough()')
38+
expect(inputFields).toBe('const testInputSchemaGen = z.object({\nname: z.string(),\n}).passthrough()')
3939

40-
expect(outputFields).toBe('const testOutputSchemaGen = z.object({\n name: z.string()\n}).passthrough()')
40+
expect(outputFields).toBe('const testOutputSchemaGen = z.object({\nname: z.string(),\n}).passthrough()')
4141
})
4242
})

0 commit comments

Comments
 (0)