aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/schema/tests.rs')
-rw-r--r--src/api/schema/tests.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/schema/tests.rs b/src/api/schema/tests.rs
index 5199038d..663f3fc4 100644
--- a/src/api/schema/tests.rs
+++ b/src/api/schema/tests.rs
@@ -720,10 +720,12 @@ fn worktree_request_and_response_round_trip() {
branch: Some("worktree/api".into()),
base: Some("HEAD".into()),
focus: true,
+ trust_repository: true,
..WorktreeCreateParams::default()
}),
};
let json = serde_json::to_string(&request).unwrap();
+ assert!(json.contains("\"trust_repository\":true"));
let restored: Request = serde_json::from_str(&json).unwrap();
assert_eq!(restored, request);