diff options
Diffstat (limited to 'cli/tests/unit/files_test.ts')
-rw-r--r-- | cli/tests/unit/files_test.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tests/unit/files_test.ts b/cli/tests/unit/files_test.ts index 152068004..51ca1c579 100644 --- a/cli/tests/unit/files_test.ts +++ b/cli/tests/unit/files_test.ts @@ -1,4 +1,7 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-deprecated-deno-api + import { assert, assertEquals, @@ -477,7 +480,7 @@ unitTest( try { const buf = new Uint8Array(20); await file.read(buf); - } catch (e) { + } catch (_e) { thrown = true; } finally { assert(thrown, "'w' mode shouldn't allow to read file"); |