summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/dts/README.md2
-rw-r--r--cli/tests/DenoWinRunner.cs12
-rw-r--r--cli/tests/echo_server.ts2
-rw-r--r--cli/tests/tls/README.md4
4 files changed, 10 insertions, 10 deletions
diff --git a/cli/dts/README.md b/cli/dts/README.md
index 006282a90..9d07188f7 100644
--- a/cli/dts/README.md
+++ b/cli/dts/README.md
@@ -4,7 +4,7 @@ The files in this directory are mostly from the TypeScript repository. We
currently (unfortunately) have a rather manual process for upgrading TypeScript.
It works like this currently:
-1. Checkout typescript repo in a seperate directory.
+1. Checkout typescript repo in a separate directory.
2. Copy typescript.js into Deno repo.
3. Copy d.ts files into dts directory.
diff --git a/cli/tests/DenoWinRunner.cs b/cli/tests/DenoWinRunner.cs
index 7879d146d..2f9e9f89f 100644
--- a/cli/tests/DenoWinRunner.cs
+++ b/cli/tests/DenoWinRunner.cs
@@ -31,7 +31,7 @@ public class DenoWinRunner
/// </summary>
/// <param name="pathToDenoExe">Path to the Deno.exe file. Can be absolute or relative</param>
/// <param name="pathToTestScript">Path to the script file Deno should run.</param>
- /// <param name="constraints">The contrainsts to apply to the Deno process</param>
+ /// <param name="constraints">The constraints to apply to the Deno process</param>
/// <param name="timeoutMilliseconds">How long to wait for the Deno process to exit</param>
/// <returns>The deno.exe exit code, or an exit code provided by the test runner</returns>
public static int RunDenoScript(string pathToDenoExe, string pathToTestScript, DenoConstraints constraints, uint timeoutMilliseconds = 1000)
@@ -66,7 +66,7 @@ public class DenoWinRunner
{
SetStdHandle(STD_INPUT_HANDLE, (IntPtr)null);
}
-
+
if (constraints.HasFlag(DenoConstraints.NoStdout))
{
SetStdHandle(STD_OUTPUT_HANDLE, (IntPtr)null);
@@ -76,13 +76,13 @@ public class DenoWinRunner
{
SetStdHandle(STD_ERROR_HANDLE, (IntPtr)null);
}
-
+
Process process = new Process { StartInfo = startInfo };
process.Start();
- Task<string> stdErrTask = startInfo.RedirectStandardError ?
+ Task<string> stdErrTask = startInfo.RedirectStandardError ?
process.StandardError.ReadToEndAsync() : Task.FromResult<string>(null);
- Task<string> stdOutTask = startInfo.RedirectStandardOutput ?
+ Task<string> stdOutTask = startInfo.RedirectStandardOutput ?
process.StandardOutput.ReadToEndAsync() : Task.FromResult<string>(null);
if (!process.WaitForExit((int)timeoutMilliseconds))
@@ -124,4 +124,4 @@ public class DenoWinRunner
return -1;
}
}
-} \ No newline at end of file
+}
diff --git a/cli/tests/echo_server.ts b/cli/tests/echo_server.ts
index fc8afa981..fcb157fdb 100644
--- a/cli/tests/echo_server.ts
+++ b/cli/tests/echo_server.ts
@@ -4,7 +4,7 @@ const listener = Deno.listen({ hostname, port: Number(port) });
console.log("listening on", addr);
listener.accept().then(
async (conn): Promise<void> => {
- console.log("recieved bytes:", await Deno.copy(conn, conn));
+ console.log("received bytes:", await Deno.copy(conn, conn));
conn.close();
listener.close();
},
diff --git a/cli/tests/tls/README.md b/cli/tests/tls/README.md
index 34de47dea..19bbaec35 100644
--- a/cli/tests/tls/README.md
+++ b/cli/tests/tls/README.md
@@ -43,5 +43,5 @@ For testing purposes we need following files:
- `RootCA.crt`
- `RootCA.key`
- `RootCA.pem`
-- `locahost.crt`
-- `locahost.key`
+- `localhost.crt`
+- `localhost.key`