Skip to content

Commit 9d5fc13

Browse files
committed
fix(suggestion): move SQL to fixtures
1 parent ed7e81e commit 9d5fc13

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parser/flink/suggestion/tokenSuggestion.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,17 @@ describe('Flink SQL Token Suggestion', () => {
123123
});
124124

125125
test('Create Statement table properties', () => {
126-
const tokenSql = `CREATE TABLE tmp_table (col INT) WITH ('connector'='kafka');`;
127126
const scenarios = [
128127
{
129128
caretPosition: {
130-
lineNumber: 1,
129+
lineNumber: 9,
131130
column: 45,
132131
},
133132
entityContextType: EntityContextType.TABLE_PROPERTY_KEY,
134133
},
135134
{
136135
caretPosition: {
137-
lineNumber: 1,
136+
lineNumber: 9,
138137
column: 55,
139138
},
140139
entityContextType: EntityContextType.TABLE_PROPERTY_VALUE,
@@ -143,7 +142,7 @@ describe('Flink SQL Token Suggestion', () => {
143142

144143
scenarios.forEach((scenario) => {
145144
const suggestion = flink.getSuggestionAtCaretPosition(
146-
tokenSql,
145+
commentOtherLine(tokenSql, scenario.caretPosition.lineNumber),
147146
scenario.caretPosition
148147
)?.syntax;
149148

0 commit comments

Comments
 (0)