Skip to content

Commit

Permalink
Ditto
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Sep 26, 2024
1 parent b695245 commit 726cd17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/units/12_parser_log.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ l.4 \\draw
`

const error = latexLogParser.parse(log, get.path('main.tex'))?.[0]
assert.strictEqual(error.errorPosText, ' \\draw')
assert.strictEqual(error?.errorPosText, ' \\draw')
})

it('should handle multi-line LaTeX errors without line number', () => {
const log = `! Undefined control sequence.
Test message`

const error = latexLogParser.parse(log, get.path('main.tex'))?.[0]
assert.strictEqual(error.text, 'Undefined control sequence.\nTest message')
assert.strictEqual(error?.text, 'Undefined control sequence.\nTest message')
})

const badboxLogs = [
Expand Down Expand Up @@ -370,7 +370,7 @@ Test message`
const log = 'Biber warning: WARN - I didn\'t find a database entry for \'nonexisting\' (section 0)'
const warning = latexLogParser.parse(log, get.path('main.tex'))?.[0]
assert.strictEqual(warning?.type, 'warning')
assert.strictEqual(warning.text, 'No bib entry found for \'nonexisting\'')
assert.strictEqual(warning?.text, 'No bib entry found for \'nonexisting\'')
})
})

Expand Down

0 comments on commit 726cd17

Please sign in to comment.