mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
xtask: the packaged-site test requires the Gujarati face only when craft-fonts has it
This commit is contained in:
@@ -248,7 +248,10 @@ mod tests {
|
||||
assert_eq!(sha256::hex(&bytes), row[6], "{SERVED_URL}{file} differs from the manifest");
|
||||
checked.push(e.family.to_owned());
|
||||
}
|
||||
assert!(checked.iter().any(|f| f == "Noto Sans Gujarati"), "the Gujarati face was not published: {checked:?}");
|
||||
// An older craft-fonts without the Gujarati face stays valid; one that has it must publish it.
|
||||
if manifest.lines().any(|l| l.starts_with("Noto Sans Gujarati | Regular |")) {
|
||||
assert!(checked.iter().any(|f| f == "Noto Sans Gujarati"), "the Gujarati face was not published: {checked:?}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user