Use ts-expect-error instead of ts-ignore. (#5869)

This commit is contained in:
Kitson Kelly 2020-05-27 00:02:16 +10:00 committed by GitHub
parent 24c36fd862
commit 228f9c207f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 81 additions and 94 deletions

View file

@ -290,7 +290,7 @@ unitTest(
// writing null should throw an error
let err;
try {
// @ts-ignore
// @ts-expect-error
await file.write(null);
} catch (e) {
err = e;
@ -322,7 +322,7 @@ unitTest(
// reading file into null buffer should throw an error
let err;
try {
// @ts-ignore
// @ts-expect-error
await file.read(null);
} catch (e) {
err = e;