build: lint cli/tests/unit using deno lint (#6327)

This commit is contained in:
Alan Gou 2020-06-19 02:05:37 -07:00 committed by GitHub
parent 36ad5e4402
commit ffedbd79ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 42 additions and 19 deletions

View file

@ -747,7 +747,9 @@ unitTest({ perms: { net: true } }, async function fetchBodyReadTwice(): Promise<
fail(
"Reading body multiple times should failed, the stream should've been locked."
);
} catch {}
} catch {
// pass
}
}
});
@ -768,7 +770,9 @@ unitTest(
try {
response.body.getReader();
fail("The stream should've been locked.");
} catch {}
} catch {
// pass
}
}
);