@@ -65,11 +65,13 @@ describe('ExecAuth', () => {
65
65
) : child_process . ChildProcessWithoutNullStreams => {
66
66
return {
67
67
stdout : {
68
+ setEncoding : ( ) => { } ,
68
69
on : ( _data : string , f : ( data : Buffer | string ) => void ) => {
69
70
f ( Buffer . from ( JSON . stringify ( { status : { token : 'foo' } } ) ) ) ;
70
71
} ,
71
72
} ,
72
73
stderr : {
74
+ setEncoding : ( ) => { } ,
73
75
on : ( ) => { } ,
74
76
} ,
75
77
on : ( op : string , f : any ) => {
@@ -110,6 +112,7 @@ describe('ExecAuth', () => {
110
112
) : child_process . ChildProcessWithoutNullStreams => {
111
113
return {
112
114
stdout : {
115
+ setEncoding : ( ) => { } ,
113
116
on : ( _data : string , f : ( data : Buffer | string ) => void ) => {
114
117
f (
115
118
Buffer . from (
@@ -121,6 +124,7 @@ describe('ExecAuth', () => {
121
124
} ,
122
125
} ,
123
126
stderr : {
127
+ setEncoding : ( ) => { } ,
124
128
on : ( ) => { } ,
125
129
} ,
126
130
on : ( op : string , f : any ) => {
@@ -168,6 +172,7 @@ describe('ExecAuth', () => {
168
172
execCount ++ ;
169
173
return {
170
174
stdout : {
175
+ setEncoding : ( ) => { } ,
171
176
on : ( _data : string , f : ( data : Buffer | string ) => void ) => {
172
177
f (
173
178
Buffer . from (
@@ -179,6 +184,7 @@ describe('ExecAuth', () => {
179
184
} ,
180
185
} ,
181
186
stderr : {
187
+ setEncoding : ( ) => { } ,
182
188
on : ( ) => { } ,
183
189
} ,
184
190
on : ( op : string , f : any ) => {
@@ -253,9 +259,11 @@ describe('ExecAuth', () => {
253
259
) : child_process . ChildProcessWithoutNullStreams => {
254
260
return {
255
261
stdout : {
262
+ setEncoding : ( ) => { } ,
256
263
on : ( _data : string , f : ( data : Buffer | string ) => void ) => { } ,
257
264
} ,
258
265
stderr : {
266
+ setEncoding : ( ) => { } ,
259
267
on : ( ) => { } ,
260
268
} ,
261
269
on : ( op : string , f : any ) => {
@@ -297,11 +305,13 @@ describe('ExecAuth', () => {
297
305
) : child_process . ChildProcessWithoutNullStreams => {
298
306
return {
299
307
stdout : {
308
+ setEncoding : ( ) => { } ,
300
309
on : ( _data : string , f : ( data : Buffer | string ) => void ) => {
301
310
f ( Buffer . from ( JSON . stringify ( { status : { token : 'foo' } } ) ) ) ;
302
311
} ,
303
312
} ,
304
313
stderr : {
314
+ setEncoding : ( ) => { } ,
305
315
on : ( _data : string , f : ( data : Buffer | string ) => void ) => {
306
316
f ( Buffer . from ( 'Some error!' ) ) ;
307
317
} ,
@@ -346,11 +356,13 @@ describe('ExecAuth', () => {
346
356
optsOut = options ;
347
357
return {
348
358
stdout : {
359
+ setEncoding : ( ) => { } ,
349
360
on : ( _data : string , f : ( data : Buffer | string ) => void ) => {
350
361
f ( Buffer . from ( JSON . stringify ( { status : { token : 'foo' } } ) ) ) ;
351
362
} ,
352
363
} ,
353
364
stderr : {
365
+ setEncoding : ( ) => { } ,
354
366
on : ( ) => { } ,
355
367
} ,
356
368
on : ( op : string , f : any ) => {
@@ -402,11 +414,13 @@ describe('ExecAuth', () => {
402
414
) : child_process . ChildProcessWithoutNullStreams => {
403
415
return {
404
416
stdout : {
417
+ setEncoding : ( ) => { } ,
405
418
on : ( _data : string , f : ( data : Buffer | string ) => void ) => {
406
419
f ( Buffer . from ( JSON . stringify ( { status : { token : 'foo' } } ) ) ) ;
407
420
} ,
408
421
} ,
409
422
stderr : {
423
+ setEncoding : ( ) => { } ,
410
424
on : ( ) => { } ,
411
425
} ,
412
426
on : ( op : string , f : any ) => {
0 commit comments