mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2025-01-05 22:13:46 +03:00
Add a test to KOMA base suggestions
This commit is contained in:
parent
1e32ce92fb
commit
6533600de1
3
test/fixtures/armory/intellisense/koma.tex
vendored
Normal file
3
test/fixtures/armory/intellisense/koma.tex
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
\documentclass{scrartcl}
|
||||
\begin{document}
|
||||
\end{document}
|
@ -441,4 +441,15 @@ suite('Intellisense test suite', () => {
|
||||
assert.ok(undefined === suggestions.items.find(item => item.label === '#+' && item.insertText instanceof vscode.SnippetString && item.insertText.value === '\\bigcup'))
|
||||
assert.ok(undefined === suggestions.items.find(item => item.label === '#8'))
|
||||
})
|
||||
|
||||
test.run('suggest base KOMAScript macros/envs in KOMAScript class', async (fixture: string) => {
|
||||
await test.load(fixture, [
|
||||
{src: 'intellisense/koma.tex', dst: 'main.tex'}
|
||||
])
|
||||
const suggestions = test.suggest(0, 1)
|
||||
// in class-scrartcl.cwl
|
||||
assert.ok(suggestions.labels.includes('\\addpart{}'))
|
||||
// in base
|
||||
assert.ok(suggestions.labels.includes('\\addchap{}'))
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user