Skip to content

Commit 2a9a404

Browse files
Add mixed case
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 1d38638 commit 2a9a404

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

test/postgresql.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,14 @@ describe('PostgreSqlFormatter', () => {
260260
it('formats keywords in CREATE CONSTRAINT TRIGGER', () => {
261261
expect(
262262
format(
263-
`CREATE CONSTRAINT TRIGGER example_trigger
264-
AFTER INSERT
265-
OR
266-
UPDATE OF column_a,
267-
column_b ON example_table
268-
DEFERRABLE INITIALLY DEFERRED FOR EACH ROW
269-
EXECUTE PROCEDURE example_function ();`,
270-
{ keywordCase: 'upper' }
263+
`create constraint trigger Example_Trigger
264+
after insert
265+
or
266+
update of Column_A,
267+
Column_B on Example_Table
268+
deferrable initially deferred for each row
269+
execute procedure Example_Function ();`,
270+
{ keywordCase: 'upper', identifierCase: 'lower' }
271271
)
272272
).toBe(dedent`
273273
CREATE CONSTRAINT TRIGGER example_trigger

0 commit comments

Comments
 (0)