diff --git a/apps/wordcraft-cli/tests/it/strict.rs b/apps/wordcraft-cli/tests/it/strict.rs index 399fc09927..1fa89d9880 100644 --- a/apps/wordcraft-cli/tests/it/strict.rs +++ b/apps/wordcraft-cli/tests/it/strict.rs @@ -372,7 +372,7 @@ fn run_with_strict_cannot_forge_an_error_line_either() { assert_eq!(r.status.code(), Some(1)); let text = stderr(&r); assert_eq!(text.lines().count(), 1, "{text}"); - assert!(text.contains("\\u{1b}") || text.contains("\\u{1b}[2J"), "{text}"); + assert!(text.contains("\\nwordcraft-cli: strict: forged") && text.contains("\\u{202e}"), "{text}"); assert!(!text.contains('\u{1b}') && !text.contains('\u{202e}'), "{text:?}"); assert!(!out.exists()); std::fs::remove_dir_all(d).unwrap();