mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Remove FileInfo.path
This commit is contained in:
parent
7d25c559fc
commit
e02d8bcf18
4 changed files with 1 additions and 20 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue