@@ -34,7 +34,8 @@ t.test('basic', t => {
34
34
t . test ( 'file maxReadSize=' + maxReadSize , t => {
35
35
t . test ( 'sync' , t => {
36
36
const actual : string [ ] = [ ]
37
- const onReadEntry = ( entry : ReadEntry ) => actual . push ( entry . path )
37
+ const onReadEntry = ( entry : ReadEntry ) =>
38
+ actual . push ( entry . path )
38
39
list ( {
39
40
file : file ,
40
41
sync : true ,
@@ -46,7 +47,8 @@ t.test('basic', t => {
46
47
47
48
t . test ( 'async promise' , async t => {
48
49
const actual : string [ ] = [ ]
49
- const onReadEntry = ( entry : ReadEntry ) => actual . push ( entry . path )
50
+ const onReadEntry = ( entry : ReadEntry ) =>
51
+ actual . push ( entry . path )
50
52
return await list ( {
51
53
file,
52
54
onReadEntry,
@@ -56,7 +58,8 @@ t.test('basic', t => {
56
58
57
59
t . test ( 'async cb' , t => {
58
60
const actual : string [ ] = [ ]
59
- const onReadEntry = ( entry : ReadEntry ) => actual . push ( entry . path )
61
+ const onReadEntry = ( entry : ReadEntry ) =>
62
+ actual . push ( entry . path )
60
63
list (
61
64
{
62
65
file : file ,
@@ -79,15 +82,17 @@ t.test('basic', t => {
79
82
t . test ( 'stream' , t => {
80
83
t . test ( 'sync' , t => {
81
84
const actual : string [ ] = [ ]
82
- const onReadEntry = ( entry : ReadEntry ) => actual . push ( entry . path )
85
+ const onReadEntry = ( entry : ReadEntry ) =>
86
+ actual . push ( entry . path )
83
87
const l = list ( { sync : true , onReadEntry } )
84
88
l . end ( fs . readFileSync ( file ) )
85
89
return check ( actual , t )
86
90
} )
87
91
88
92
t . test ( 'async' , t => {
89
93
const actual : string [ ] = [ ]
90
- const onReadEntry = ( entry : ReadEntry ) => actual . push ( entry . path )
94
+ const onReadEntry = ( entry : ReadEntry ) =>
95
+ actual . push ( entry . path )
91
96
const l = list ( )
92
97
l . on ( 'entry' , onReadEntry )
93
98
l . on ( 'end' , _ => check ( actual , t ) . then ( _ => t . end ( ) ) )
@@ -130,7 +135,8 @@ t.test('basic', t => {
130
135
t . test ( 'no filter function, stream' , t => {
131
136
const check = ( ) => t . same ( actual , expect )
132
137
const actual : string [ ] = [ ]
133
- const onReadEntry = ( entry : ReadEntry ) => actual . push ( entry . path )
138
+ const onReadEntry = ( entry : ReadEntry ) =>
139
+ actual . push ( entry . path )
134
140
fs . createReadStream ( file ) . pipe (
135
141
list ( fileList )
136
142
. on ( 'entry' , onReadEntry )
0 commit comments