diff options
Diffstat (limited to 'tests/drivers/toolchain_lsp_contract_test.js')
| -rw-r--r-- | tests/drivers/toolchain_lsp_contract_test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/drivers/toolchain_lsp_contract_test.js b/tests/drivers/toolchain_lsp_contract_test.js index 2872282..59d5a4c 100644 --- a/tests/drivers/toolchain_lsp_contract_test.js +++ b/tests/drivers/toolchain_lsp_contract_test.js @@ -284,12 +284,12 @@ test('inference', 'typed fields do not constrain the containing parameter to a s test('quickfix', 'an entire-line request finds the compiler error inside the range', () => { const source = 'fn main() { rt.put_n(7); }'; const r = run(source, [{ needle: 'fn', method: 'textDocument/codeAction', params: { range: { start: { line: 0, character: 0 }, end: { line: 0, character: source.length } }, context: { diagnostics: [{ range: { start: { line: 99, character: 99 }, end: { line: 99, character: 99 } }, message: 'stale' }] } } }]); - assert.ok(r.result(2)?.some(a => a.title === 'include rt;'), JSON.stringify(r.result(2))); + assert.ok(r.result(2)?.some(a => a.title === 'include rt'), JSON.stringify(r.result(2))); }); test('quickfix', 'an owner-name cursor can import a qualified module', () => { const source = 'fn main() { rt.put_n(7); }', start = { line: 0, character: source.indexOf('rt.') }; const r = run(source, [{ needle: 'rt.', method: 'textDocument/codeAction', params: { range: { start, end: start }, context: { diagnostics: [] } } }]); - assert.ok(r.result(2)?.some(a => a.title === 'include rt;')); + assert.ok(r.result(2)?.some(a => a.title === 'include rt')); }); test('modulehover', 'source library overview is available without a built-in module entry', () => { const folder = fs.mkdtempSync(path.join(os.tmpdir(), 'zc-module-hover-')); |
