Skip to content

Commit b8f3adb

Browse files
committed
run linting and remove .only
1 parent 6b660b9 commit b8f3adb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ export function parse(
164164
statementEnd: boolean;
165165
parens: 0;
166166
state: State;
167-
params: Array<string>
167+
params: Array<string>;
168168
} = {
169169
isCte: false,
170170
asSeen: false,
171171
statementEnd: false,
172172
parens: 0,
173173
state: topLevelState,
174-
params: []
174+
params: [],
175175
};
176176

177177
const ignoreOutsideBlankTokens = ['whitespace', 'comment-inline', 'comment-block', 'semicolon'];

test/index.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('identify', () => {
6666
]);
6767
});
6868

69-
it.only('params should be recognized in a CTE', () => {
69+
it('params should be recognized in a CTE', () => {
7070
const query = `
7171
WITH foo AS (
7272
SELECT * FROM bar where user_id = $1::bigint
@@ -82,10 +82,10 @@ describe('identify', () => {
8282
type: 'SELECT',
8383
executionType: 'LISTING',
8484
parameters: ['$1'],
85-
tables: []
86-
}
87-
])
88-
})
85+
tables: [],
86+
},
87+
]);
88+
});
8989

9090
it('should identify tables in simple for basic cases', () => {
9191
expect(

0 commit comments

Comments
 (0)