@@ -14,7 +14,7 @@ const testFixtures = fixtures.path('test-runner');
14
14
assert . strictEqual ( child . status , 1 ) ;
15
15
assert . strictEqual ( child . signal , null ) ;
16
16
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 / ) ;
18
18
}
19
19
20
20
{
@@ -27,11 +27,11 @@ const testFixtures = fixtures.path('test-runner');
27
27
assert . strictEqual ( child . signal , null ) ;
28
28
assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
29
29
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 / ) ;
35
35
}
36
36
37
37
{
@@ -59,11 +59,11 @@ const testFixtures = fixtures.path('test-runner');
59
59
assert . strictEqual ( child . signal , null ) ;
60
60
assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
61
61
const stdout = child . stdout . toString ( ) ;
62
- assert ( / n o t o k 1 - .+ i n d e x \. j s / . test ( stdout ) ) ;
63
- assert ( / o k 2 - .+ i n d e x \. t e s t \. j s / . test ( stdout ) ) ;
64
- assert ( / n o t o k 3 - .+ r a n d o m \. t e s t \. m j s / . test ( stdout ) ) ;
65
- assert ( / n o t o k 1 - t h i s s h o u l d f a i l / . test ( stdout ) ) ;
66
- assert ( / o k 4 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / . test ( stdout ) ) ;
62
+ assert . match ( stdout , / n o t o k 1 - .+ i n d e x \. j s / ) ;
63
+ assert . match ( stdout , / o k 2 - .+ i n d e x \. t e s t \. j s / ) ;
64
+ assert . match ( stdout , / n o t o k 3 - .+ r a n d o m \. t e s t \. m j s / ) ;
65
+ assert . match ( stdout , / n o t o k 1 - t h i s s h o u l d f a i l / ) ;
66
+ assert . match ( stdout , / o k 4 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
67
67
}
68
68
69
69
{
@@ -75,7 +75,7 @@ const testFixtures = fixtures.path('test-runner');
75
75
assert . strictEqual ( child . signal , null ) ;
76
76
assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
77
77
const stdout = child . stdout . toString ( ) ;
78
- assert ( / n o t o k 1 - .+ t e s t - n m \. j s / . test ( stdout ) ) ;
78
+ assert . match ( stdout , / n o t o k 1 - .+ t e s t - n m \. j s / ) ;
79
79
}
80
80
81
81
{
@@ -88,11 +88,11 @@ const testFixtures = fixtures.path('test-runner');
88
88
assert . strictEqual ( child . signal , null ) ;
89
89
assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
90
90
const stdout = child . stdout . toString ( ) ;
91
- assert ( / o k 1 - .+ i n d e x \. t e s t \. j s / . test ( stdout ) ) ;
92
- assert ( / n o t o k 2 - .+ r a n d o m \. t e s t \. m j s / . test ( stdout ) ) ;
93
- assert ( / n o t o k 1 - t h i s s h o u l d f a i l / . test ( stdout ) ) ;
94
- assert ( / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / . test ( stdout ) ) ;
95
- assert ( / o k 4 - .+ r a n d o m \. c j s / . test ( stdout ) ) ;
91
+ assert . match ( stdout , / o k 1 - .+ i n d e x \. t e s t \. j s / ) ;
92
+ assert . match ( stdout , / n o t o k 2 - .+ r a n d o m \. t e s t \. m j s / ) ;
93
+ assert . match ( stdout , / n o t o k 1 - t h i s s h o u l d f a i l / ) ;
94
+ assert . match ( stdout , / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
95
+ assert . match ( stdout , / o k 4 - .+ r a n d o m \. c j s / ) ;
96
96
}
97
97
98
98
{
@@ -118,6 +118,6 @@ const testFixtures = fixtures.path('test-runner');
118
118
assert . strictEqual ( child . signal , null ) ;
119
119
assert . strictEqual ( child . stdout . toString ( ) , '' ) ;
120
120
const stderr = child . stderr . toString ( ) ;
121
- assert ( / - - t e s t / . test ( stderr ) ) ;
121
+ assert . match ( stderr , / - - t e s t / ) ;
122
122
} ) ;
123
123
}
0 commit comments