File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default function() {
51
51
] ) )
52
52
. then ( ( results ) => {
53
53
const stderr = results [ 0 ] . stderr ;
54
- if ( ! / E R R O R i n ( .* \/ s r c \/ ) ? m a i n \. t s / . test ( stderr ) ) {
54
+ if ( ! / E R R O R i n ( .* s r c \/ ) ? m a i n \. t s / . test ( stderr ) ) {
55
55
throw new Error ( 'Expected an error but none happened.' ) ;
56
56
}
57
57
} )
@@ -65,8 +65,8 @@ export default function() {
65
65
] ) )
66
66
. then ( ( results ) => {
67
67
const stderr = results [ 0 ] . stderr ;
68
- if ( ! / E R R O R i n ( .* \/ s r c \/ ) ? m a i n \. t s / . test ( stderr ) ) {
69
- throw new Error ( 'Expected an error but none happened .' ) ;
68
+ if ( ! / E R R O R i n ( .* s r c \/ ) ? m a i n \. t s / . test ( stderr ) ) {
69
+ throw new Error ( 'Expected an error to still be there but none was .' ) ;
70
70
}
71
71
} )
72
72
// Fix the error!
@@ -80,7 +80,7 @@ export default function() {
80
80
] ) )
81
81
. then ( ( results ) => {
82
82
const stderr = results [ 0 ] . stderr ;
83
- if ( / E R R O R i n ( .* \/ s r c \/ ) ? m a i n \. t s / . test ( stderr ) ) {
83
+ if ( / E R R O R i n ( .* s r c \/ ) ? m a i n \. t s / . test ( stderr ) ) {
84
84
throw new Error ( 'Expected no error but an error was shown.' ) ;
85
85
}
86
86
} )
You can’t perform that action at this time.
0 commit comments