This repository was archived by the owner on May 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,12 @@ describe("aider", async () => {
74
74
// Instead of running the script, just verify the script content
75
75
// to ensure the tmux parameter is being properly applied
76
76
const instance = findResourceInstance ( state , "coder_script" ) ;
77
- expect ( instance . script . includes ( "${var.use_tmux}" ) ) . toBe ( true ) ;
78
77
79
- // Make sure the generated script contains the condition for tmux
80
- expect ( instance . script . includes ( 'if [ "${var.use_tmux} " = "true" ]' ) ) . toBe ( true ) ;
78
+ // Check for the correct tmux condition with the interpolated value
79
+ expect ( instance . script . includes ( 'if [ "true " = "true" ]' ) ) . toBe ( true ) ;
81
80
82
- // This is sufficient to verify the parameter is being passed correctly,
83
- // without trying to test the runtime behavior which is difficult in the test env
81
+ // Also check for a unique string only present when tmux is used in the script
82
+ expect ( instance . script . includes ( 'tmux new-session -d -s' ) ) . toBe ( true ) ;
84
83
} ) ;
85
84
86
85
it ( "configures task reporting when enabled" , async ( ) => {
You can’t perform that action at this time.
0 commit comments