mirror of
https://github.com/openai/codex.git
synced 2026-05-24 04:54:52 +00:00
Fix test assert
This commit is contained in:
@@ -6836,19 +6836,19 @@ mod tests {
|
||||
|
||||
let _ = composer.handle_key_event(KeyEvent::new(KeyCode::Right, KeyModifiers::NONE));
|
||||
assert_eq!(composer.draft.textarea.cursor(), "go".len() + 1);
|
||||
assert!(matches!(composer.popups.active, ActivePopup::MentionV2(_)));
|
||||
assert!(matches!(composer.popups.active, ActivePopup::None));
|
||||
|
||||
let _ = composer.handle_key_event(KeyEvent::new(KeyCode::Right, KeyModifiers::NONE));
|
||||
assert_eq!(composer.draft.textarea.cursor(), "go @figma".len());
|
||||
assert!(matches!(composer.popups.active, ActivePopup::MentionV2(_)));
|
||||
assert!(matches!(composer.popups.active, ActivePopup::None));
|
||||
|
||||
let _ = composer.handle_key_event(KeyEvent::new(KeyCode::Left, KeyModifiers::NONE));
|
||||
assert_eq!(composer.draft.textarea.cursor(), "go ".len());
|
||||
assert!(matches!(composer.popups.active, ActivePopup::MentionV2(_)));
|
||||
assert!(matches!(composer.popups.active, ActivePopup::None));
|
||||
|
||||
let _ = composer.handle_key_event(KeyEvent::new(KeyCode::Left, KeyModifiers::NONE));
|
||||
assert_eq!(composer.draft.textarea.cursor(), "go".len());
|
||||
assert!(matches!(composer.popups.active, ActivePopup::MentionV2(_)));
|
||||
assert!(matches!(composer.popups.active, ActivePopup::None));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user