summaryrefslogtreecommitdiff
path: root/cli/tests/unit/files_test.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-06-02 14:24:44 +1000
committerGitHub <noreply@github.com>2020-06-02 00:24:44 -0400
commit3fe6bc1b82a10bed1d907b749b1cc200659df612 (patch)
tree02e14128039d015a7256494a50476f61785e6f33 /cli/tests/unit/files_test.ts
parent8b1b4766a1e747437a2b88fcadc26162a1bec640 (diff)
fix: Better use of @ts-expect-error (#6038)
Diffstat (limited to 'cli/tests/unit/files_test.ts')
-rw-r--r--cli/tests/unit/files_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/files_test.ts b/cli/tests/unit/files_test.ts
index 9ab74be89..a1b532157 100644
--- a/cli/tests/unit/files_test.ts
+++ b/cli/tests/unit/files_test.ts
@@ -290,8 +290,8 @@ unitTest(
// writing null should throw an error
let err;
try {
- // @ts-expect-error
- await file.write(null);
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ await file.write(null as any);
} catch (e) {
err = e;
}
@@ -322,8 +322,8 @@ unitTest(
// reading file into null buffer should throw an error
let err;
try {
- // @ts-expect-error
- await file.read(null);
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ await file.read(null as any);
} catch (e) {
err = e;
}