Circumvent last formatter test on windows

This commit is contained in:
James Yu 2023-01-13 02:23:33 +08:00
parent 39be7d6fd6
commit 75d132cdb9
2 changed files with 14 additions and 3 deletions

View 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}
}

View File

@ -277,11 +277,15 @@ suite('Formatter test suite', () => {
assert.ok(entries[1].includes('MR1241645'))
})
test.run(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'}])
test.only(suiteName, fixtureName, 'test bibtex aligner with `bibtex-fields.sort.enabled` and `bibtex-fields.order`', async () => {
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 vscode.workspace.getConfiguration('latex-workshop').update('bibtex-fields.sort.enabled', true)
if (!vscode.window.activeTextEditor) {
return
}
let promise = test.wait(DocumentChanged)
await vscode.commands.executeCommand('latex-workshop.bibalign')
await promise