From 9cfdc60a23e6418d4780dc3ebd6266248555bb03 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 16 Sep 2019 21:05:14 -0400 Subject: Move integration tests to //cli/tests/ (#2964) This ensures the deno executable is properly created before running the integration tests. Also allows deno_cli to be used as a lib. Docs are now properly generated: https://docs.rs/deno_cli/0.18.4/deno_cli/ Towards #2933 Prep for #2955 --- js/stat_test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'js') diff --git a/js/stat_test.ts b/js/stat_test.ts index 1de98f984..1542f1080 100644 --- a/js/stat_test.ts +++ b/js/stat_test.ts @@ -54,9 +54,9 @@ testPerm({ read: true }, async function lstatSyncSuccess(): Promise { assert(!modulesInfo.isDirectory()); assert(modulesInfo.isSymlink()); - const testsInfo = Deno.lstatSync("tests"); - assert(testsInfo.isDirectory()); - assert(!testsInfo.isSymlink()); + const i = Deno.lstatSync("website"); + assert(i.isDirectory()); + assert(!i.isSymlink()); }); testPerm({ read: false }, async function lstatSyncPerm(): Promise { @@ -96,9 +96,9 @@ testPerm({ read: true }, async function statSuccess(): Promise { assert(modulesInfo.isDirectory()); assert(!modulesInfo.isSymlink()); - const testsInfo = await Deno.stat("tests"); - assert(testsInfo.isDirectory()); - assert(!testsInfo.isSymlink()); + const i = await Deno.stat("tests"); + assert(i.isDirectory()); + assert(!i.isSymlink()); }); testPerm({ read: false }, async function statPerm(): Promise { @@ -138,9 +138,9 @@ testPerm({ read: true }, async function lstatSuccess(): Promise { assert(!modulesInfo.isDirectory()); assert(modulesInfo.isSymlink()); - const testsInfo = await Deno.lstat("tests"); - assert(testsInfo.isDirectory()); - assert(!testsInfo.isSymlink()); + const i = await Deno.lstat("website"); + assert(i.isDirectory()); + assert(!i.isSymlink()); }); testPerm({ read: false }, async function lstatPerm(): Promise { -- cgit v1.2.3