@@ -14,7 +14,7 @@ const testFixtures = fixtures.path('test-runner');
1414 assert . strictEqual ( child . status , 1 ) ;
1515 assert . strictEqual ( child . signal , null ) ;
1616 assert . strictEqual ( child . stdout . toString ( ) , '' ) ;
17- assert ( / ^ C o u l d n o t f i n d / . test ( child . stderr . toString ( ) ) ) ;
17+ assert . match ( child . stderr . toString ( ) , / ^ C o u l d n o t f i n d / ) ;
1818}
1919
2020{
@@ -27,11 +27,11 @@ const testFixtures = fixtures.path('test-runner');
2727 assert . strictEqual ( child . signal , null ) ;
2828 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
2929 const stdout = child . stdout . toString ( ) ;
30- assert ( / o k 1 - .+ i n d e x \. t e s t \. j s / . test ( stdout ) ) ;
31- assert ( / n o t o k 2 - .+ r a n d o m \. t e s t \. m j s / . test ( stdout ) ) ;
32- assert ( / n o t o k 1 - t h i s s h o u l d f a i l / . test ( stdout ) ) ;
33- assert ( / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / . test ( stdout ) ) ;
34- assert ( / o k 4 - .+ r a n d o m \. c j s / . test ( stdout ) ) ;
30+ assert . match ( stdout , / o k 1 - .+ i n d e x \. t e s t \. j s / ) ;
31+ assert . match ( stdout , / n o t o k 2 - .+ r a n d o m \. t e s t \. m j s / ) ;
32+ assert . match ( stdout , / n o t o k 1 - t h i s s h o u l d f a i l / ) ;
33+ assert . match ( stdout , / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
34+ assert . match ( stdout , / o k 4 - .+ r a n d o m \. c j s / ) ;
3535}
3636
3737{
@@ -43,11 +43,11 @@ const testFixtures = fixtures.path('test-runner');
4343 assert . strictEqual ( child . signal , null ) ;
4444 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
4545 const stdout = child . stdout . toString ( ) ;
46- assert ( / n o t o k 1 - .+ i n d e x \. j s / . test ( stdout ) ) ;
47- assert ( / o k 2 - .+ i n d e x \. t e s t \. j s / . test ( stdout ) ) ;
48- assert ( / n o t o k 3 - .+ r a n d o m \. t e s t \. m j s / . test ( stdout ) ) ;
49- assert ( / n o t o k 1 - t h i s s h o u l d f a i l / . test ( stdout ) ) ;
50- assert ( / o k 4 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / . test ( stdout ) ) ;
46+ assert . match ( stdout , / n o t o k 1 - .+ i n d e x \. j s / ) ;
47+ assert . match ( stdout , / o k 2 - .+ i n d e x \. t e s t \. j s / ) ;
48+ assert . match ( stdout , / n o t o k 3 - .+ r a n d o m \. t e s t \. m j s / ) ;
49+ assert . match ( stdout , / n o t o k 1 - t h i s s h o u l d f a i l / ) ;
50+ assert . match ( stdout , / o k 4 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
5151}
5252
5353{
@@ -59,7 +59,7 @@ const testFixtures = fixtures.path('test-runner');
5959 assert . strictEqual ( child . signal , null ) ;
6060 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
6161 const stdout = child . stdout . toString ( ) ;
62- assert ( / n o t o k 1 - .+ t e s t - n m \. j s / . test ( stdout ) ) ;
62+ assert . match ( stdout , / n o t o k 1 - .+ t e s t - n m \. j s / ) ;
6363}
6464
6565{
@@ -72,11 +72,11 @@ const testFixtures = fixtures.path('test-runner');
7272 assert . strictEqual ( child . signal , null ) ;
7373 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
7474 const stdout = child . stdout . toString ( ) ;
75- assert ( / o k 1 - .+ i n d e x \. t e s t \. j s / . test ( stdout ) ) ;
76- assert ( / n o t o k 2 - .+ r a n d o m \. t e s t \. m j s / . test ( stdout ) ) ;
77- assert ( / n o t o k 1 - t h i s s h o u l d f a i l / . test ( stdout ) ) ;
78- assert ( / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / . test ( stdout ) ) ;
79- assert ( / o k 4 - .+ r a n d o m \. c j s / . test ( stdout ) ) ;
75+ assert . match ( stdout , / o k 1 - .+ i n d e x \. t e s t \. j s / ) ;
76+ assert . match ( stdout , / n o t o k 2 - .+ r a n d o m \. t e s t \. m j s / ) ;
77+ assert . match ( stdout , / n o t o k 1 - t h i s s h o u l d f a i l / ) ;
78+ assert . match ( stdout , / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
79+ assert . match ( stdout , / o k 4 - .+ r a n d o m \. c j s / ) ;
8080}
8181
8282{
@@ -102,6 +102,6 @@ const testFixtures = fixtures.path('test-runner');
102102 assert . strictEqual ( child . signal , null ) ;
103103 assert . strictEqual ( child . stdout . toString ( ) , '' ) ;
104104 const stderr = child . stderr . toString ( ) ;
105- assert ( / - - t e s t / . test ( stderr ) ) ;
105+ assert . match ( stderr , / - - t e s t / ) ;
106106 } ) ;
107107}
0 commit comments