UNPKG
level-filesystem
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Full implementation of the fs module on top of leveldb
github.com/mafintosh/level-filesystem
level-filesystem
/
test
/
readlink.js
13 lines
(12 loc)
•
307 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
test =
require
(
'./helpers/test'
);
test
(
'readlink'
,
function
(
fs, t
) { fs.
writeFile
(
'/test.txt'
,
'hello'
,
function
(
err
) { fs.
symlink
(
'/test.txt'
,
'/foo'
,
function
(
err
) { fs.
readlink
(
'/foo'
,
function
(
err, target
) { t.
ok
(!err); t.
same
(target,
'/test.txt'
); t.
end
(); }); }); }); });