@@ -147,7 +147,7 @@ test('a most basic test', function(t) {
147
147
'xxxxxxxxxxxxxxxxxxxxx' ] ;
148
148
149
149
r . on ( 'end' , function ( ) {
150
- t . same ( reads , expect ) ;
150
+ assert . strict ( reads , expect ) ;
151
151
t . end ( ) ;
152
152
} ) ;
153
153
@@ -180,7 +180,7 @@ test('pipe', function(t) {
180
180
const w = new TestWriter ( ) ;
181
181
182
182
w . on ( 'end' , function ( received ) {
183
- t . same ( received , expect ) ;
183
+ assert . strict ( received , expect ) ;
184
184
t . end ( ) ;
185
185
} ) ;
186
186
@@ -226,15 +226,15 @@ test('pipe', function(t) {
226
226
t . equal ( ended0 , false ) ;
227
227
ended0 = true ;
228
228
ended ++ ;
229
- t . same ( results , expect [ 0 ] ) ;
229
+ assert . strict ( results , expect [ 0 ] ) ;
230
230
} ) ;
231
231
232
232
w [ 1 ] . on ( 'end' , function ( results ) {
233
233
t . equal ( ended1 , false ) ;
234
234
ended1 = true ;
235
235
ended ++ ;
236
236
t . equal ( ended , 2 ) ;
237
- t . same ( results , expect [ 1 ] ) ;
237
+ assert . strict ( results , expect [ 1 ] ) ;
238
238
t . end ( ) ;
239
239
} ) ;
240
240
@@ -261,11 +261,11 @@ test('multipipe', function(t) {
261
261
262
262
let c = 2 ;
263
263
w [ 0 ] . on ( 'end' , function ( received ) {
264
- t . same ( received , expect , 'first' ) ;
264
+ assert . strict ( received , expect , 'first' ) ;
265
265
if ( -- c === 0 ) t . end ( ) ;
266
266
} ) ;
267
267
w [ 1 ] . on ( 'end' , function ( received ) {
268
- t . same ( received , expect , 'second' ) ;
268
+ assert . strict ( received , expect , 'second' ) ;
269
269
if ( -- c === 0 ) t . end ( ) ;
270
270
} ) ;
271
271
@@ -306,13 +306,13 @@ test('multipipe', function(t) {
306
306
307
307
w [ 0 ] . on ( 'end' , function ( results ) {
308
308
ended ++ ;
309
- t . same ( results , expect [ 0 ] ) ;
309
+ assert . strict ( results , expect [ 0 ] ) ;
310
310
} ) ;
311
311
312
312
w [ 1 ] . on ( 'end' , function ( results ) {
313
313
ended ++ ;
314
314
t . equal ( ended , 2 ) ;
315
- t . same ( results , expect [ 1 ] ) ;
315
+ assert . strict ( results , expect [ 1 ] ) ;
316
316
t . end ( ) ;
317
317
} ) ;
318
318
@@ -323,7 +323,7 @@ test('multipipe', function(t) {
323
323
324
324
test ( 'back pressure respected' , function ( t ) {
325
325
const r = new R ( { objectMode : true } ) ;
326
- r . _read = common . noop ;
326
+ r . _read = common . mustNotCall ( ) ;
327
327
let counter = 0 ;
328
328
r . push ( [ 'one' ] ) ;
329
329
r . push ( [ 'two' ] ) ;
@@ -341,7 +341,7 @@ test('back pressure respected', function(t) {
341
341
r . pipe ( w3 ) ;
342
342
} ) ;
343
343
} ;
344
- w1 . end = common . noop ;
344
+ w1 . end = common . mustNotCall ( ) ;
345
345
346
346
r . pipe ( w1 ) ;
347
347
@@ -367,7 +367,7 @@ test('back pressure respected', function(t) {
367
367
368
368
return false ;
369
369
} ;
370
- w2 . end = common . noop ;
370
+ w2 . end = common . mustCall ( ) ;
371
371
372
372
const w3 = new R ( ) ;
373
373
w3 . write = function ( chunk ) {
@@ -400,7 +400,7 @@ test('read(0) for ended streams', function(t) {
400
400
const r = new R ( ) ;
401
401
let written = false ;
402
402
let ended = false ;
403
- r . _read = common . noop ;
403
+ r . _read = common . mustNotCall ( ) ;
404
404
405
405
r . push ( Buffer . from ( 'foo' ) ) ;
406
406
r . push ( null ) ;
@@ -471,7 +471,7 @@ test('adding readable triggers data flow', function(t) {
471
471
472
472
test ( 'chainable' , function ( t ) {
473
473
const r = new R ( ) ;
474
- r . _read = common . noop ;
474
+ r . _read = common . mustCall ( ) ;
475
475
const r2 = r . setEncoding ( 'utf8' ) . pause ( ) . resume ( ) . pause ( ) ;
476
476
t . equal ( r , r2 ) ;
477
477
t . end ( ) ;
0 commit comments