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 {
105
105
}
106
106
} ;
107
107
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 ) ;
109
109
if ( this . config . stages && ! this . config . stages . includes ( stage ) ) {
110
110
// don't do anything for this stage
111
111
this . hooks = { } ;
Original file line number Diff line number Diff line change @@ -44,8 +44,10 @@ describe("Check Table operations", function() {
44
44
it ( "should connect to dynamodb and list tables" , function ( done ) {
45
45
db . listTables ( { } , function ( err , data ) {
46
46
if ( err ) {
47
+ console . log ( "==== error hit ====" ) ;
47
48
should . exist ( err ) ;
48
49
} else {
50
+ console . log ( "==== Not error hit ====" ) ;
49
51
expect ( data . TableNames ) . to . be . empty ;
50
52
}
51
53
done ( ) ;
You can’t perform that action at this time.
0 commit comments