summaryrefslogtreecommitdiff
path: root/cli/tests/unit/files_test.ts
diff options
context:
space:
mode:
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;
}