1 parent 1064134 commit 09b9539Copy full SHA for 09b9539
1 file changed
apps/desktop/src-tauri/src/lib.rs
@@ -5223,9 +5223,17 @@ mod tests {
5223
5224
#[test]
5225
fn sidecar_prompt_command_uses_node_entrypoint() {
5226
- let args = sidecar_prompt_command_args(PathBuf::from("/tmp/irori-sidecar").as_path());
+ let sidecar_dir = PathBuf::from("/tmp/irori-sidecar");
5227
+ let args = sidecar_prompt_command_args(sidecar_dir.as_path());
5228
- assert_eq!(args, vec!["/tmp/irori-sidecar/bin/pi-prompt.mjs"]);
5229
+ assert_eq!(
5230
+ args,
5231
+ vec![sidecar_dir
5232
+ .join("bin")
5233
+ .join("pi-prompt.mjs")
5234
+ .to_string_lossy()
5235
+ .to_string()]
5236
+ );
5237
}
5238
5239
0 commit comments