trim positions in current query detection

This commit is contained in:
Jan Prochazka
2021-12-12 11:25:13 +01:00
parent ec94b99f4b
commit c1e7314df1
3 changed files with 62 additions and 35 deletions

View File

@@ -111,9 +111,9 @@ test('count lines', () => {
expect.objectContaining({
text: 'SELECT * FROM `table2`',
startPosition: 23,
startLine: 0,
startColumn: 23,
startPosition: 24,
startLine: 1,
startColumn: 0,
endPosition: 46,
endLine: 1,
@@ -144,9 +144,9 @@ test('count lines with flush', () => {
expect.objectContaining({
text: 'SELECT * FROM `table2`',
startPosition: 23,
startLine: 0,
startColumn: 23,
startPosition: 24,
startLine: 1,
startColumn: 0,
endPosition: 46,
endLine: 1,