test(editor): satisfy strict thumbnail cache lint
Some checks failed
CI / Format, lint, test, build (push) Has been cancelled

This commit is contained in:
Rbanh 2026-07-22 17:23:45 -04:00
parent cadb37341d
commit 634ec16c5e

View File

@ -633,8 +633,10 @@ mod tests {
fs::create_dir_all(texture_path.parent().unwrap()).unwrap(); fs::create_dir_all(texture_path.parent().unwrap()).unwrap();
fs::write(&material_path, b"material").unwrap(); fs::write(&material_path, b"material").unwrap();
fs::write(&texture_path, b"first pixels").unwrap(); fs::write(&texture_path, b"first pixels").unwrap();
let mut material = shared::MaterialDesc::default(); let material = shared::MaterialDesc {
material.base_color_texture = Some("assets/textures/albedo.png".into()); base_color_texture: Some("assets/textures/albedo.png".into()),
..Default::default()
};
let source = ThumbnailJobSource::MaterialAsset { let source = ThumbnailJobSource::MaterialAsset {
source_path: "assets/materials/test.material.ron".into(), source_path: "assets/materials/test.material.ron".into(),
label: "Test".into(), label: "Test".into(),