Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Mario564 committed Sep 24, 2024
1 parent f796980 commit 542eb12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drizzle-kit/src/cli/validations/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;

export const pushParams = object({
dialect: dialect,
casing: casingType,
casing: casingType.optional(),
schema: union([string(), string().array()]),
tablesFilter: union([string(), string().array()]).optional(),
schemaFilter: union([string(), string().array()])
Expand Down
6 changes: 6 additions & 0 deletions drizzle-kit/tests/cli-push.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { push } from '../src/cli/schema';

test('push #1', async (t) => {
const res = await brotest(push, '');
console.log(res);
if (res.type !== 'handler') assert.fail(res.type, 'handler');
expect(res.options).toStrictEqual({
dialect: 'postgresql',
Expand All @@ -27,6 +28,7 @@ test('push #1', async (t) => {
tablesFilter: [],
strict: false,
verbose: false,
casing: undefined,
});
});

Expand All @@ -45,6 +47,7 @@ test('push #2', async (t) => {
tablesFilter: [],
strict: false,
verbose: false,
casing: undefined,
});
});

Expand All @@ -65,6 +68,7 @@ test('push #3', async (t) => {
tablesFilter: [],
strict: false,
verbose: false,
casing: undefined,
});
});

Expand All @@ -86,6 +90,7 @@ test('push #4', async (t) => {
tablesFilter: [],
strict: false,
verbose: false,
casing: undefined,
});
});

Expand All @@ -108,6 +113,7 @@ test('push #5', async (t) => {
strict: false,
force: false,
verbose: false,
casing: undefined,
});
});

Expand Down

0 comments on commit 542eb12

Please sign in to comment.