@@ -30,7 +30,7 @@ test('current path', t => {
30
30
t . is ( result . code , 0 ) ;
31
31
t . truthy ( result . indexOf ( '.hidden' ) > - 1 ) ;
32
32
t . truthy ( result . indexOf ( 'dir1/dir11/a_dir11' ) > - 1 ) ;
33
- t . is ( result . length , 11 ) ;
33
+ t . is ( result . length , 12 ) ;
34
34
shell . cd ( '../..' ) ;
35
35
} ) ;
36
36
@@ -40,7 +40,7 @@ test('simple path', t => {
40
40
t . is ( result . code , 0 ) ;
41
41
t . truthy ( result . indexOf ( 'test/resources/find/.hidden' ) > - 1 ) ;
42
42
t . truthy ( result . indexOf ( 'test/resources/find/dir1/dir11/a_dir11' ) > - 1 ) ;
43
- t . is ( result . length , 11 ) ;
43
+ t . is ( result . length , 12 ) ;
44
44
} ) ;
45
45
46
46
test ( 'multiple paths - comma' , t => {
@@ -66,3 +66,11 @@ test('nonexistent path', t => {
66
66
t . is ( shell . error ( ) , 'find: no such file or directory: test/resources/find/nonexistent' ) ;
67
67
t . is ( result . code , 1 ) ;
68
68
} ) ;
69
+
70
+ test ( '-L flag, folder is symlinked' , t => {
71
+ const result = shell . find ( '-L' , 'test/resources/find' ) ;
72
+ t . falsy ( shell . error ( ) ) ;
73
+ t . is ( result . code , 0 ) ;
74
+ t . truthy ( result . indexOf ( 'test/resources/find/dir2_link/a_dir1' ) > - 1 ) ;
75
+ t . is ( result . length , 13 ) ;
76
+ } ) ;
0 commit comments