File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class ServerlessDynamodbLocal {
105105 }
106106 } ;
107107
108- const stage = ( this . options && this . options . stage ) || this . service . provider . stage ;
108+ const stage = ( this . options && this . options . stage ) || ( this . service . provider && this . service . provider . stage ) ;
109109 if ( this . config . stages && ! this . config . stages . includes ( stage ) ) {
110110 // don't do anything for this stage
111111 this . hooks = { } ;
Original file line number Diff line number Diff line change @@ -44,8 +44,10 @@ describe("Check Table operations", function() {
4444 it ( "should connect to dynamodb and list tables" , function ( done ) {
4545 db . listTables ( { } , function ( err , data ) {
4646 if ( err ) {
47+ console . log ( "==== error hit ====" ) ;
4748 should . exist ( err ) ;
4849 } else {
50+ console . log ( "==== Not error hit ====" ) ;
4951 expect ( data . TableNames ) . to . be . empty ;
5052 }
5153 done ( ) ;
You can’t perform that action at this time.
0 commit comments