File tree Expand file tree Collapse file tree 6 files changed +30
-25
lines changed Expand file tree Collapse file tree 6 files changed +30
-25
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ exports.config = {
2323 var fullName = config . specs [ spec_id ] ;
2424 browser . executeScript ( "lambda-name=" + fullName . split ( / ( \\ | \/ ) / g) . pop ( ) )
2525 } ) ;
26- } ,
27- specDone : function ( result ) {
28- browser . executeScript ( "lambda-status=" + result . status ) ;
2926 }
3027 } ;
3128 jasmine . getEnv ( ) . addReporter ( myReporter ) ;
3229} ,
33- onComplete : ( ) => {
30+ onComplete : ( passed ) => {
31+ if ( passed )
32+ browser . executeScript ( "lambda-status=passed" ) ;
33+ else
34+ browser . executeScript ( "lambda-status=failed" ) ;
3435 browser . quit ( ) ;
3536 }
3637
Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ exports.config = {
2323 var fullName = config . specs [ spec_id ] ;
2424 browser . executeScript ( "lambda-name=" + fullName . split ( / ( \\ | \/ ) / g) . pop ( ) )
2525 } ) ;
26- } ,
27- specDone : function ( result ) {
28- browser . executeScript ( "lambda-status=" + result . status ) ;
2926 }
3027 } ;
3128 jasmine . getEnv ( ) . addReporter ( myReporter ) ;
3229} ,
33- onComplete : ( ) => {
30+ onComplete : ( passed ) => {
31+ if ( passed )
32+ browser . executeScript ( "lambda-status=passed" ) ;
33+ else
34+ browser . executeScript ( "lambda-status=failed" ) ;
3435 browser . quit ( ) ;
3536 }
3637} ;
Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ exports.config = {
2323 var fullName = config . specs [ spec_id ] ;
2424 browser . executeScript ( "lambda-name=" + fullName . split ( / ( \\ | \/ ) / g) . pop ( ) )
2525 } ) ;
26- } ,
27- specDone : function ( result ) {
28- browser . executeScript ( "lambda-status=" + result . status ) ;
2926 }
3027 } ;
3128 jasmine . getEnv ( ) . addReporter ( myReporter ) ;
3229} ,
33- onComplete : ( ) => {
30+ onComplete : ( passed ) => {
31+ if ( passed )
32+ browser . executeScript ( "lambda-status=passed" ) ;
33+ else
34+ browser . executeScript ( "lambda-status=failed" ) ;
3435 browser . quit ( ) ;
3536 }
3637
Original file line number Diff line number Diff line change @@ -43,14 +43,15 @@ exports.config = {
4343 var fullName = config . specs [ spec_id ] ;
4444 browser . executeScript ( "lambda-name=" + fullName . split ( / ( \\ | \/ ) / g) . pop ( ) )
4545 } ) ;
46- } ,
47- specDone : function ( result ) {
48- browser . executeScript ( "lambda-status=" + result . status ) ;
4946 }
5047 } ;
5148 jasmine . getEnv ( ) . addReporter ( myReporter ) ;
5249} ,
53- onComplete : ( ) => {
50+ onComplete : ( passed ) => {
51+ if ( passed )
52+ browser . executeScript ( "lambda-status=passed" ) ;
53+ else
54+ browser . executeScript ( "lambda-status=failed" ) ;
5455 browser . quit ( ) ;
5556 }
5657
Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ exports.config = {
4545 var fullName = config . specs [ spec_id ] ;
4646 browser . executeScript ( "lambda-name=" + fullName . split ( / ( \\ | \/ ) / g) . pop ( ) )
4747 } ) ;
48- } ,
49- specDone : function ( result ) {
50- browser . executeScript ( "lambda-status=" + result . status ) ;
5148 }
5249 } ;
5350 jasmine . getEnv ( ) . addReporter ( myReporter ) ;
5451} ,
55- onComplete : ( ) => {
52+ onComplete : ( passed ) => {
53+ if ( passed )
54+ browser . executeScript ( "lambda-status=passed" ) ;
55+ else
56+ browser . executeScript ( "lambda-status=failed" ) ;
5657 browser . quit ( ) ;
5758 }
58-
5959} ;
6060
6161// Code to support common capabilities
Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ exports.config = {
2323 var fullName = config . specs [ spec_id ] ;
2424 browser . executeScript ( "lambda-name=" + fullName . split ( / ( \\ | \/ ) / g) . pop ( ) )
2525 } ) ;
26- } ,
27- specDone : function ( result ) {
28- browser . executeScript ( "lambda-status=" + result . status ) ;
2926 }
3027 } ;
3128 jasmine . getEnv ( ) . addReporter ( myReporter ) ;
3229 } ,
33- onComplete : ( ) => {
30+ onComplete : ( passed ) => {
31+ if ( passed )
32+ browser . executeScript ( "lambda-status=passed" ) ;
33+ else
34+ browser . executeScript ( "lambda-status=failed" ) ;
3435 browser . quit ( ) ;
3536 }
3637
You can’t perform that action at this time.
0 commit comments