Remove FileInfo.path

This commit is contained in:
Ryan Dahl 2019-05-08 16:12:16 -04:00
parent 7d25c559fc
commit e02d8bcf18
4 changed files with 1 additions and 20 deletions

View file

@ -3,8 +3,6 @@ import { testPerm, assert, assertEquals } from "./test_util.ts";
type FileInfo = Deno.FileInfo;
const isWin = Deno.build.os === "win";
function assertSameContent(files: FileInfo[]): void {
let counter = 0;
@ -15,11 +13,6 @@ function assertSameContent(files: FileInfo[]): void {
}
if (file.name === "002_hello.ts") {
if (isWin) {
assert(file.path.endsWith(`tests\\${file.name}`));
} else {
assert(file.path.endsWith(`tests/${file.name}`));
}
assertEquals(file.mode!, Deno.statSync(`tests/${file.name}`).mode!);
counter++;
}