From 0ec151b8cb2a92bb1765672fa15de23e6c8842d4 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 1 Nov 2021 16:22:27 -0400 Subject: chore: upgrade deno_ast to 0.5.0 (#12595) --- cli/tests/unit/globals_test.ts | 2 +- cli/tests/unit/opcall_test.ts | 2 +- cli/tests/unit/resources_test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/globals_test.ts b/cli/tests/unit/globals_test.ts index 94c7ec3b5..f3c8141d8 100644 --- a/cli/tests/unit/globals_test.ts +++ b/cli/tests/unit/globals_test.ts @@ -73,7 +73,7 @@ unitTest(function webAssemblyExists() { declare global { namespace Deno { - // deno-lint-ignore no-explicit-any + // deno-lint-ignore no-explicit-any, no-var var core: any; } } diff --git a/cli/tests/unit/opcall_test.ts b/cli/tests/unit/opcall_test.ts index e38f481d9..63871cd4c 100644 --- a/cli/tests/unit/opcall_test.ts +++ b/cli/tests/unit/opcall_test.ts @@ -27,7 +27,7 @@ unitTest(async function sendAsyncStackTrace() { declare global { namespace Deno { - // deno-lint-ignore no-explicit-any + // deno-lint-ignore no-explicit-any, no-var var core: any; } } diff --git a/cli/tests/unit/resources_test.ts b/cli/tests/unit/resources_test.ts index 1aab51faa..368f7f990 100644 --- a/cli/tests/unit/resources_test.ts +++ b/cli/tests/unit/resources_test.ts @@ -47,7 +47,7 @@ unitTest({ permissions: { read: true } }, async function resourcesFile() { Object.keys(resourcesBefore).length + 1, ); const newRid = +Object.keys(resourcesAfter).find((rid): boolean => { - return !resourcesBefore.hasOwnProperty(rid); + return !Object.prototype.hasOwnProperty.call(resourcesBefore, rid); })!; assertEquals(resourcesAfter[newRid], "fsFile"); }); -- cgit v1.2.3