fix(ci/test): failing on Windows

pull/9/head
wongjiahau 2 years ago
parent e991ed9b17
commit 9726ae7dbb

@ -1139,7 +1139,10 @@ mod test_explorer {
// 0. Open the add file/folder prompt
explorer.handle_events("a").unwrap();
let prompt = &explorer.prompt.as_ref().unwrap().1;
assert_eq!(prompt.prompt(), " New file or folder (ends with '/'): ");
assert_eq!(
prompt.prompt().replace(std::path::MAIN_SEPARATOR, "/"),
" New file or folder (ends with '/'): "
);
assert_eq!(
prompt.line().replace(std::path::MAIN_SEPARATOR, "/"),
"test_explorer/new_folder/"

Loading…
Cancel
Save