mirror of
https://github.com/openai/codex.git
synced 2026-12-01 00:20:48 +00:00
Normalize whitespace in experimental popup node requirement test
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Codex
parent
690e2c8c58
commit
d93b7504d5
@@ -6932,8 +6932,13 @@ async fn experimental_popup_shows_js_repl_node_requirement() {
|
||||
chat.open_experimental_popup();
|
||||
|
||||
let popup = render_bottom_popup(&chat, 120);
|
||||
let normalized_popup = popup.split_whitespace().collect::<Vec<_>>().join(" ");
|
||||
let normalized_requirement = node_requirement
|
||||
.split_whitespace()
|
||||
.collect::<Vec<_>>()
|
||||
.join(" ");
|
||||
assert!(
|
||||
popup.contains(node_requirement),
|
||||
normalized_popup.contains(&normalized_requirement),
|
||||
"expected js_repl feature description to mention the required Node version, got:\n{popup}"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user