mirror of
https://github.com/instructkr/claw-code.git
synced 2026-12-02 00:00:34 +08:00
test(prompt): load permissionMode fixture from local settings
Project-scope permissionMode is now ignored, so the prompt rendering fixtures use .claw/settings.local.json.
This commit is contained in:
1 file changed
+2
-2
@@ -1255,7 +1255,7 @@ mod tests {
|
||||
fs::create_dir_all(root.join(".claw")).expect("claw dir");
|
||||
fs::write(root.join("CLAUDE.md"), "Project rules").expect("write instructions");
|
||||
fs::write(
|
||||
root.join(".claw").join("settings.json"),
|
||||
root.join(".claw").join("settings.local.json"),
|
||||
r#"{"permissionMode":"acceptEdits"}"#,
|
||||
)
|
||||
.expect("write settings");
|
||||
@@ -1418,7 +1418,7 @@ mod tests {
|
||||
fs::create_dir_all(root.join(".claw")).expect("claw dir");
|
||||
fs::write(root.join("CLAUDE.md"), "Project rules").expect("write CLAUDE.md");
|
||||
fs::write(
|
||||
root.join(".claw").join("settings.json"),
|
||||
root.join(".claw").join("settings.local.json"),
|
||||
r#"{"permissionMode":"acceptEdits"}"#,
|
||||
)
|
||||
.expect("write settings");
|
||||
|
||||
Reference in new issue
Block a user