@@ -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
{
@@ -43,11 +43,11 @@ const testFixtures = fixtures.path('test-runner');
43
43
assert . strictEqual ( child . signal , null ) ;
44
44
assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
45
45
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 / ) ;
51
51
}
52
52
53
53
{
@@ -59,7 +59,7 @@ 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 - .+ 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 / ) ;
63
63
}
64
64
65
65
{
@@ -72,11 +72,11 @@ const testFixtures = fixtures.path('test-runner');
72
72
assert . strictEqual ( child . signal , null ) ;
73
73
assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
74
74
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 / ) ;
80
80
}
81
81
82
82
{
@@ -102,6 +102,6 @@ const testFixtures = fixtures.path('test-runner');
102
102
assert . strictEqual ( child . signal , null ) ;
103
103
assert . strictEqual ( child . stdout . toString ( ) , '' ) ;
104
104
const stderr = child . stderr . toString ( ) ;
105
- assert ( / - - t e s t / . test ( stderr ) ) ;
105
+ assert . match ( stderr , / - - t e s t / ) ;
106
106
} ) ;
107
107
}
0 commit comments