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() {
5151 ] ) )
5252 . then ( ( results ) => {
5353 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 ) ) {
5555 throw new Error ( 'Expected an error but none happened.' ) ;
5656 }
5757 } )
@@ -65,8 +65,8 @@ export default function() {
6565 ] ) )
6666 . then ( ( results ) => {
6767 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 .' ) ;
7070 }
7171 } )
7272 // Fix the error!
@@ -80,7 +80,7 @@ export default function() {
8080 ] ) )
8181 . then ( ( results ) => {
8282 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 ) ) {
8484 throw new Error ( 'Expected no error but an error was shown.' ) ;
8585 }
8686 } )
You can’t perform that action at this time.
0 commit comments