Skip to content

Commit d07b3eb

Browse files
committed
Correct font name
1 parent 2df7886 commit d07b3eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/latexmk/parse-error.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function fontSearchTerm(font: string): string {
1616
function assertFound(logText: string, expected: string, file?: string) {
1717
assert(
1818
findMissingFontsAndPackages(logText, ".")[0] === expected,
19-
`Expected \`${expected}\` in ${file ?? logText} but not found.`
19+
`Expected \`${expected}\` in \"${file ?? logText}\" but not found.`
2020
)
2121
}
2222

@@ -28,7 +28,7 @@ unitTest("Detect missing files with `findMissingFontsAndPackages`", async () =>
2828
// fonts
2929
assertFound("! Font U/psy/m/n/10=psyr at 10.0pt not loadable: Metric (TFM) file not found", fontSearchTerm("psyr"));
3030
assertFound('! The font "FandolSong-Regular" cannot be found.', fontSearchTerm("FandolSong-Regular"));
31-
assertFound('! Package fontspec Error: The font "Caladea" cannot be found.', fontSearchTerm("caladea"));
31+
assertFound('! Package fontspec Error: The font "Caladea" cannot be found.', fontSearchTerm("Caladea"));
3232
assertFound('!pdfTeX error: /usr/local/bin/pdflatex (file tcrm0700): Font tcrm0700 at 600 not found', fontSearchTerm("tcrm0700"))
3333
assertFound('(fontspec) The font "LibertinusSerif-Regular" cannot be', fontSearchTerm("LibertinusSerif-Regular"));
3434
assertFound('! Font \\JY3/mc/m/n/10=file:HaranoAjiMincho-Regular.otf:-kern;jfm=ujis at 9.24713pt not loadable: metric data not found or bad.', "HaranoAjiMincho-Regular.otf");

0 commit comments

Comments
 (0)