mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 07:34:36 +00:00
fix: fs.exists not work for symlink (denoland/deno_std#291)
Original: 264a51c093
This commit is contained in:
parent
2e1ed890b8
commit
e12d5521bf
3 changed files with 13 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue