Skip to content

Commit 602a1cb

Browse files
committed
fix unittest for autocomplete
1 parent e2b65bc commit 602a1cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/test/extension.autocomplete.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ suite('Autocomplete', () => {
8686
return vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, position);
8787
}).then((list: { isIncomplete: boolean, items: vscode.CompletionItem[] }) => {
8888
assert.equal(list.items.filter(item => item.label === 'bar').length, 1, 'bar not found');
89-
const documentation = `bar()${EOL}${EOL}说明 - keep this line, it works${EOL}delete following line, it works${EOL}如果存在需要等待审批或正在执行的任务,将不刷新页面`;
89+
const documentation = `说明 - keep this line, it works${EOL}delete following line, it works${EOL}如果存在需要等待审批或正在执行的任务,将不刷新页面`;
9090
assert.equal(list.items.filter(item => item.label === 'bar')[0].documentation, documentation, 'unicode documentation is incorrect');
9191
}).then(done, done);
9292
});
@@ -107,7 +107,7 @@ suite('Autocomplete', () => {
107107
assert.equal(list.items.filter(item => item.label === 'Foo')[0].documentation, '说明', 'Foo unicode documentation is incorrect');
108108

109109
assert.equal(list.items.filter(item => item.label === 'showMessage').length, 1, 'showMessage not found');
110-
const documentation = `showMessage()${EOL}${EOL}Кюм ут жэмпэр пошжим льаборэж, коммюны янтэрэсщэт нам ед, декта игнота ныморэ жят эи. ${EOL}Шэа декам экшырки эи, эи зыд эррэм докэндё, векж факэтэ пэрчыквюэрёж ку.`;
110+
const documentation = `Кюм ут жэмпэр пошжим льаборэж, коммюны янтэрэсщэт нам ед, декта игнота ныморэ жят эи. ${EOL}Шэа декам экшырки эи, эи зыд эррэм докэндё, векж факэтэ пэрчыквюэрёж ку.`;
111111
assert.equal(list.items.filter(item => item.label === 'showMessage')[0].documentation, documentation, 'showMessage unicode documentation is incorrect');
112112
}).then(done, done);
113113
});

0 commit comments

Comments
 (0)