@@ -85,9 +85,6 @@ function run() {
85
85
const fn = next [ 1 ] ;
86
86
console . log ( '# %s' , name ) ;
87
87
fn ( {
88
- same : assert . deepStrictEqual ,
89
- ok : assert ,
90
- equal : assert . strictEqual ,
91
88
end : function ( ) {
92
89
count -- ;
93
90
run ( ) ;
@@ -189,10 +186,10 @@ test('pipe', function(t) {
189
186
w [ 0 ] . on ( 'write' , function ( ) {
190
187
if ( -- writes === 0 ) {
191
188
r . unpipe ( ) ;
192
- t . equal ( r . _readableState . pipes , null ) ;
189
+ assert . strictEqual ( r . _readableState . pipes , null ) ;
193
190
w [ 0 ] . end ( ) ;
194
191
r . pipe ( w [ 1 ] ) ;
195
- t . equal ( r . _readableState . pipes , w [ 1 ] ) ;
192
+ assert . strictEqual ( r . _readableState . pipes , w [ 1 ] ) ;
196
193
}
197
194
} ) ;
198
195
@@ -201,17 +198,17 @@ test('pipe', function(t) {
201
198
let ended0 = false ;
202
199
let ended1 = false ;
203
200
w [ 0 ] . on ( 'end' , function ( results ) {
204
- t . equal ( ended0 , false ) ;
201
+ assert . strictEqual ( ended0 , false ) ;
205
202
ended0 = true ;
206
203
ended ++ ;
207
204
assert . deepStrictEqual ( results , expect [ 0 ] ) ;
208
205
} ) ;
209
206
210
207
w [ 1 ] . on ( 'end' , function ( results ) {
211
- t . equal ( ended1 , false ) ;
208
+ assert . strictEqual ( ended1 , false ) ;
212
209
ended1 = true ;
213
210
ended ++ ;
214
- t . equal ( ended , 2 ) ;
211
+ assert . strictEqual ( ended , 2 ) ;
215
212
assert . deepStrictEqual ( results , expect [ 1 ] ) ;
216
213
t . end ( ) ;
217
214
} ) ;
@@ -289,7 +286,7 @@ test('multipipe', function(t) {
289
286
290
287
w [ 1 ] . on ( 'end' , function ( results ) {
291
288
ended ++ ;
292
- t . equal ( ended , 2 ) ;
289
+ assert . strictEqual ( ended , 2 ) ;
293
290
assert . deepStrictEqual ( results , expect [ 1 ] ) ;
294
291
t . end ( ) ;
295
292
} ) ;
@@ -441,8 +438,8 @@ test('adding readable triggers data flow', function(t) {
441
438
} ) ;
442
439
443
440
r . on ( 'end' , function ( ) {
444
- t . equal ( readCalled , 3 ) ;
445
- t . ok ( onReadable ) ;
441
+ assert . strictEqual ( readCalled , 3 ) ;
442
+ assert . ok ( onReadable ) ;
446
443
t . end ( ) ;
447
444
} ) ;
448
445
} ) ;
@@ -451,6 +448,6 @@ test('chainable', function(t) {
451
448
const r = new R ( ) ;
452
449
r . _read = common . mustCall ( ) ;
453
450
const r2 = r . setEncoding ( 'utf8' ) . pause ( ) . resume ( ) . pause ( ) ;
454
- t . equal ( r , r2 ) ;
451
+ assert . strictEqual ( r , r2 ) ;
455
452
t . end ( ) ;
456
453
} ) ;
0 commit comments