Skip to content

Commit a45b00c

Browse files
committed
chore: why is the test failing?
1 parent 10fc899 commit a45b00c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/backend/src/graphql/__tests__/mutations/tiles/create-table.itest.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('create table mutation', () => {
1717
it('should create a blank table', async () => {
1818
const table = await createTable(
1919
null,
20-
{ input: { name: 'Test Table', isBlank: true } },
20+
{ input: { name: 'Test Table', isBlank: true, databaseType: 'ddb' } },
2121
context,
2222
)
2323
const tableColumnCount = await table.$relatedQuery('columns').resultSize()
@@ -58,11 +58,7 @@ describe('create table mutation', () => {
5858

5959
it('should throw an error when table name is empty', async () => {
6060
await expect(
61-
createTable(
62-
null,
63-
{ input: { name: '', isBlank: false, databaseType: 'ddb' } },
64-
context,
65-
),
61+
createTable(null, { input: { name: '', isBlank: false } }, context),
6662
).rejects.toThrow()
6763
})
6864
})

0 commit comments

Comments
 (0)