fix: fs.exists not work for symlink (denoland/deno_std#291)

Original: 264a51c093
This commit is contained in:
Axetroy 2019-03-19 00:34:54 +08:00 committed by Ryan Dahl
parent 2e1ed890b8
commit e12d5521bf
3 changed files with 13 additions and 2 deletions

View file

@ -34,3 +34,13 @@ test(function existsDirectorySync() {
);
assertEquals(existsSync(testdataDir), true);
});
test(function existsLinkSync() {
// TODO(axetroy): generate link file use Deno api instead of set a link file in repository
assertEquals(existsSync(path.join(testdataDir, "0-link.ts")), true);
});
test(async function existsLink() {
// TODO(axetroy): generate link file use Deno api instead of set a link file in repository
assertEquals(await exists(path.join(testdataDir, "0-link.ts")), true);
});