@@ -107,9 +107,6 @@ function run() {
107
107
const fn = next [ 1 ] ;
108
108
console . log ( '# %s' , name ) ;
109
109
fn ( {
110
- same : assert . deepStrictEqual ,
111
- ok : assert ,
112
- equal : assert . strictEqual ,
113
110
end : function ( ) {
114
111
count -- ;
115
112
run ( ) ;
@@ -147,7 +144,7 @@ test('a most basic test', function(t) {
147
144
'xxxxxxxxxxxxxxxxxxxxx' ] ;
148
145
149
146
r . on ( 'end' , function ( ) {
150
- assert . strict ( reads , expect ) ;
147
+ assert . deepStrictEqual ( reads , expect ) ;
151
148
t . end ( ) ;
152
149
} ) ;
153
150
@@ -180,7 +177,7 @@ test('pipe', function(t) {
180
177
const w = new TestWriter ( ) ;
181
178
182
179
w . on ( 'end' , function ( received ) {
183
- assert . strict ( received , expect ) ;
180
+ assert . deepStrictEqual ( received , expect ) ;
184
181
t . end ( ) ;
185
182
} ) ;
186
183
@@ -211,10 +208,10 @@ test('pipe', function(t) {
211
208
w [ 0 ] . on ( 'write' , function ( ) {
212
209
if ( -- writes === 0 ) {
213
210
r . unpipe ( ) ;
214
- t . equal ( r . _readableState . pipes , null ) ;
211
+ assert . strictEqual ( r . _readableState . pipes , null ) ;
215
212
w [ 0 ] . end ( ) ;
216
213
r . pipe ( w [ 1 ] ) ;
217
- t . equal ( r . _readableState . pipes , w [ 1 ] ) ;
214
+ assert . strictEqual ( r . _readableState . pipes , w [ 1 ] ) ;
218
215
}
219
216
} ) ;
220
217
@@ -223,18 +220,18 @@ test('pipe', function(t) {
223
220
let ended0 = false ;
224
221
let ended1 = false ;
225
222
w [ 0 ] . on ( 'end' , function ( results ) {
226
- t . equal ( ended0 , false ) ;
223
+ assert . strictEqual ( ended0 , false ) ;
227
224
ended0 = true ;
228
225
ended ++ ;
229
- assert . strict ( results , expect [ 0 ] ) ;
226
+ assert . deepStrictEqual ( results , expect [ 0 ] ) ;
230
227
} ) ;
231
228
232
229
w [ 1 ] . on ( 'end' , function ( results ) {
233
- t . equal ( ended1 , false ) ;
230
+ assert . strictEqual ( ended1 , false ) ;
234
231
ended1 = true ;
235
232
ended ++ ;
236
- t . equal ( ended , 2 ) ;
237
- assert . strict ( results , expect [ 1 ] ) ;
233
+ assert . strictEqual ( ended , 2 ) ;
234
+ assert . deepStrictEqual ( results , expect [ 1 ] ) ;
238
235
t . end ( ) ;
239
236
} ) ;
240
237
@@ -261,11 +258,11 @@ test('multipipe', function(t) {
261
258
262
259
let c = 2 ;
263
260
w [ 0 ] . on ( 'end' , function ( received ) {
264
- assert . strict ( received , expect , 'first' ) ;
261
+ assert . deepStrictEqual ( received , expect , 'first' ) ;
265
262
if ( -- c === 0 ) t . end ( ) ;
266
263
} ) ;
267
264
w [ 1 ] . on ( 'end' , function ( received ) {
268
- assert . strict ( received , expect , 'second' ) ;
265
+ assert . deepStrictEqual ( received , expect , 'second' ) ;
269
266
if ( -- c === 0 ) t . end ( ) ;
270
267
} ) ;
271
268
@@ -306,13 +303,13 @@ test('multipipe', function(t) {
306
303
307
304
w [ 0 ] . on ( 'end' , function ( results ) {
308
305
ended ++ ;
309
- assert . strict ( results , expect [ 0 ] ) ;
306
+ assert . deepStrictEqual ( results , expect [ 0 ] ) ;
310
307
} ) ;
311
308
312
309
w [ 1 ] . on ( 'end' , function ( results ) {
313
310
ended ++ ;
314
- t . equal ( ended , 2 ) ;
315
- assert . strict ( results , expect [ 1 ] ) ;
311
+ assert . strictEqual ( ended , 2 ) ;
312
+ assert . deepStrictEqual ( results , expect [ 1 ] ) ;
316
313
t . end ( ) ;
317
314
} ) ;
318
315
@@ -463,8 +460,8 @@ test('adding readable triggers data flow', function(t) {
463
460
} ) ;
464
461
465
462
r . on ( 'end' , function ( ) {
466
- t . equal ( readCalled , 3 ) ;
467
- t . ok ( onReadable ) ;
463
+ assert . strictEqual ( readCalled , 3 ) ;
464
+ assert . ok ( onReadable ) ;
468
465
t . end ( ) ;
469
466
} ) ;
470
467
} ) ;
@@ -473,6 +470,6 @@ test('chainable', function(t) {
473
470
const r = new R ( ) ;
474
471
r . _read = common . mustCall ( ) ;
475
472
const r2 = r . setEncoding ( 'utf8' ) . pause ( ) . resume ( ) . pause ( ) ;
476
- t . equal ( r , r2 ) ;
473
+ assert . strictEqual ( r , r2 ) ;
477
474
t . end ( ) ;
478
475
} ) ;
0 commit comments