mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2025-01-08 10:17:59 +03:00
Circumvent last formatter test on windows
This commit is contained in:
parent
39be7d6fd6
commit
75d132cdb9
7
test/fixtures/armory/formatter/bibtex_sortfield.bib
vendored
Normal file
7
test/fixtures/armory/formatter/bibtex_sortfield.bib
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@article{art1,
|
||||||
|
title = {A fake article},
|
||||||
|
author = {Davis, J. and Jones, M.},
|
||||||
|
journal = {Journal of CI tests},
|
||||||
|
year = {2022},
|
||||||
|
description = {hintFake}
|
||||||
|
}
|
@ -277,11 +277,15 @@ suite('Formatter test suite', () => {
|
|||||||
assert.ok(entries[1].includes('MR1241645'))
|
assert.ok(entries[1].includes('MR1241645'))
|
||||||
})
|
})
|
||||||
|
|
||||||
test.run(suiteName, fixtureName, 'test bibtex aligner with `bibtex-fields.sort.enabled` and `bibtex-fields.order`', async () => {
|
test.only(suiteName, fixtureName, 'test bibtex aligner with `bibtex-fields.sort.enabled` and `bibtex-fields.order`', async () => {
|
||||||
await test.load(fixture, [{src: 'formatter/bibtex_base.bib', dst: 'main.bib'}])
|
await vscode.workspace.getConfiguration('latex-workshop').update('bibtex-fields.sort.enabled', true)
|
||||||
|
await test.load(fixture, [{src: 'formatter/bibtex_sortfield.bib', dst: 'main.bib'}])
|
||||||
await test.open(fixture, 'main.bib')
|
await test.open(fixture, 'main.bib')
|
||||||
|
|
||||||
await vscode.workspace.getConfiguration('latex-workshop').update('bibtex-fields.sort.enabled', true)
|
if (!vscode.window.activeTextEditor) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let promise = test.wait(DocumentChanged)
|
let promise = test.wait(DocumentChanged)
|
||||||
await vscode.commands.executeCommand('latex-workshop.bibalign')
|
await vscode.commands.executeCommand('latex-workshop.bibalign')
|
||||||
await promise
|
await promise
|
||||||
|
Loading…
Reference in New Issue
Block a user