diff options
Diffstat (limited to 'cli/installer.rs')
-rw-r--r-- | cli/installer.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/cli/installer.rs b/cli/installer.rs index 2d47f6a04..d5e90a252 100644 --- a/cli/installer.rs +++ b/cli/installer.rs @@ -257,7 +257,7 @@ mod tests { DenoFlags::default(), None, "echo_test", - "http://localhost:4545/tests/echo_server.ts", + "http://localhost:4545/cli/tests/echo_server.ts", vec![], ) .expect("Install failed"); @@ -274,11 +274,11 @@ mod tests { let expected_content = if cfg!(windows) { r#"% This executable is generated by Deno. Please don't modify it unless you know what it means. % @IF EXIST "%~dp0\deno.exe" ( - "%~dp0\deno.exe" "run" "http://localhost:4545/tests/echo_server.ts" %* + "%~dp0\deno.exe" "run" "http://localhost:4545/cli/tests/echo_server.ts" %* ) ELSE ( @SETLOCAL @SET PATHEXT=%PATHEXT:;.TS;=;% - "deno" "run" "http://localhost:4545/tests/echo_server.ts" %* + "deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" %* ) "# } else { @@ -291,10 +291,10 @@ case \`uname\` in esac if [ -x "$basedir/deno" ]; then - "$basedir/deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@" + "$basedir/deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@" ret=$? else - "deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@" + "deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@" ret=$? fi exit $ret @@ -319,7 +319,7 @@ exit $ret DenoFlags::default(), Some(temp_dir.path().to_string_lossy().to_string()), "echo_test", - "http://localhost:4545/tests/echo_server.ts", + "http://localhost:4545/cli/tests/echo_server.ts", vec![], ) .expect("Install failed"); @@ -335,11 +335,11 @@ exit $ret let expected_content = if cfg!(windows) { r#"% This executable is generated by Deno. Please don't modify it unless you know what it means. % @IF EXIST "%~dp0\deno.exe" ( - "%~dp0\deno.exe" "run" "http://localhost:4545/tests/echo_server.ts" %* + "%~dp0\deno.exe" "run" "http://localhost:4545/cli/tests/echo_server.ts" %* ) ELSE ( @SETLOCAL @SET PATHEXT=%PATHEXT:;.TS;=;% - "deno" "run" "http://localhost:4545/tests/echo_server.ts" %* + "deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" %* ) "# } else { @@ -352,10 +352,10 @@ case \`uname\` in esac if [ -x "$basedir/deno" ]; then - "$basedir/deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@" + "$basedir/deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@" ret=$? else - "deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@" + "deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@" ret=$? fi exit $ret @@ -377,7 +377,7 @@ exit $ret }, Some(temp_dir.path().to_string_lossy().to_string()), "echo_test", - "http://localhost:4545/tests/echo_server.ts", + "http://localhost:4545/cli/tests/echo_server.ts", vec!["--foobar".to_string()], ) .expect("Install failed"); @@ -393,11 +393,11 @@ exit $ret let expected_content = if cfg!(windows) { r#"% This executable is generated by Deno. Please don't modify it unless you know what it means. % @IF EXIST "%~dp0\deno.exe" ( - "%~dp0\deno.exe" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" %* + "%~dp0\deno.exe" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" %* ) ELSE ( @SETLOCAL @SET PATHEXT=%PATHEXT:;.TS;=;% - "deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" %* + "deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" %* ) "# } else { @@ -410,10 +410,10 @@ case \`uname\` in esac if [ -x "$basedir/deno" ]; then - "$basedir/deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" "$@" + "$basedir/deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" "$@" ret=$? else - "deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" "$@" + "deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" "$@" ret=$? fi exit $ret |