summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/045_proxy_test.ts20
-rw-r--r--cli/tests/testdata/089_run_allow_list.ts4
-rw-r--r--cli/tests/testdata/lock_write_fetch.ts6
3 files changed, 15 insertions, 15 deletions
diff --git a/cli/tests/testdata/045_proxy_test.ts b/cli/tests/testdata/045_proxy_test.ts
index 620e23e14..6a4e72aff 100644
--- a/cli/tests/testdata/045_proxy_test.ts
+++ b/cli/tests/testdata/045_proxy_test.ts
@@ -31,7 +31,7 @@ async function handler(req: Request): Promise<Response> {
}
async function testFetch() {
- const { status } = await Deno.spawn(Deno.execPath(), {
+ const { code } = await Deno.spawn(Deno.execPath(), {
args: [
"run",
"--quiet",
@@ -44,11 +44,11 @@ async function testFetch() {
},
});
- assertEquals(status.code, 0);
+ assertEquals(code, 0);
}
async function testModuleDownload() {
- const { status } = await Deno.spawn(Deno.execPath(), {
+ const { code } = await Deno.spawn(Deno.execPath(), {
args: [
"cache",
"--reload",
@@ -60,11 +60,11 @@ async function testModuleDownload() {
},
});
- assertEquals(status.code, 0);
+ assertEquals(code, 0);
}
async function testFetchNoProxy() {
- const { status } = await Deno.spawn(Deno.execPath(), {
+ const { code } = await Deno.spawn(Deno.execPath(), {
args: [
"run",
"--quiet",
@@ -78,11 +78,11 @@ async function testFetchNoProxy() {
},
});
- assertEquals(status.code, 0);
+ assertEquals(code, 0);
}
async function testModuleDownloadNoProxy() {
- const { status } = await Deno.spawn(Deno.execPath(), {
+ const { code } = await Deno.spawn(Deno.execPath(), {
args: [
"cache",
"--reload",
@@ -95,11 +95,11 @@ async function testModuleDownloadNoProxy() {
},
});
- assertEquals(status.code, 0);
+ assertEquals(code, 0);
}
async function testFetchProgrammaticProxy() {
- const { status } = await Deno.spawn(Deno.execPath(), {
+ const { code } = await Deno.spawn(Deno.execPath(), {
args: [
"run",
"--quiet",
@@ -109,7 +109,7 @@ async function testFetchProgrammaticProxy() {
"045_programmatic_proxy_client.ts",
],
});
- assertEquals(status.code, 0);
+ assertEquals(code, 0);
}
proxyServer();
diff --git a/cli/tests/testdata/089_run_allow_list.ts b/cli/tests/testdata/089_run_allow_list.ts
index 0eb79dcc2..d7bc8e195 100644
--- a/cli/tests/testdata/089_run_allow_list.ts
+++ b/cli/tests/testdata/089_run_allow_list.ts
@@ -4,9 +4,9 @@ try {
console.log(e);
}
-const { status } = await Deno.spawn("curl", {
+const { success } = await Deno.spawn("curl", {
args: ["--help"],
stdout: "null",
stderr: "inherit",
});
-console.log(status.success);
+console.log(success);
diff --git a/cli/tests/testdata/lock_write_fetch.ts b/cli/tests/testdata/lock_write_fetch.ts
index 7be6af84a..b403f5536 100644
--- a/cli/tests/testdata/lock_write_fetch.ts
+++ b/cli/tests/testdata/lock_write_fetch.ts
@@ -17,7 +17,7 @@ const fetchProc = await Deno.spawn(Deno.execPath(), {
],
});
-console.log(`fetch code: ${fetchProc.status.code}`);
+console.log(`fetch code: ${fetchProc.code}`);
const fetchCheckProc = await Deno.spawn(Deno.execPath(), {
stdout: "null",
@@ -30,7 +30,7 @@ const fetchCheckProc = await Deno.spawn(Deno.execPath(), {
],
});
-console.log(`fetch check code: ${fetchCheckProc.status.code}`);
+console.log(`fetch check code: ${fetchCheckProc.code}`);
Deno.removeSync("./lock_write_fetch.json");
@@ -47,6 +47,6 @@ const runProc = await Deno.spawn(Deno.execPath(), {
],
});
-console.log(`run code: ${runProc.status.code}`);
+console.log(`run code: ${runProc.code}`);
Deno.removeSync("./lock_write_fetch.json");