aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema/tests.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-31 16:21:53 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-31 16:22:04 +0300
commitbc1c052d1524749b3f24d91e83f120ca8b7f37c4 (patch)
treed012bd4288bec8033bd8e9ab4e2086e8f110178e /src/api/schema/tests.rs
parent7db744ab4758df30f3e811ff9930646ec5f5970d (diff)
fix: read alternate-screen agent history
Diffstat (limited to 'src/api/schema/tests.rs')
-rw-r--r--src/api/schema/tests.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/schema/tests.rs b/src/api/schema/tests.rs
index 16894dbf..5fe6dd27 100644
--- a/src/api/schema/tests.rs
+++ b/src/api/schema/tests.rs
@@ -412,10 +412,13 @@ fn pane_read_defaults_to_text_format() {
"#;
let request: Request = serde_json::from_str(json).unwrap();
+ let serialized = serde_json::to_value(&request).unwrap();
+ assert!(serialized["params"].get("intent").is_none());
let Method::PaneRead(params) = request.method else {
panic!("wrong method parsed");
};
assert_eq!(params.format, ReadFormat::Text);
+ assert_eq!(params.intent, ReadIntent::Interactive);
}
#[test]