File tree Expand file tree Collapse file tree 3 files changed +4041
-9
lines changed Expand file tree Collapse file tree 3 files changed +4041
-9
lines changed Original file line number Diff line number Diff line change 54
54
"eslint-plugin-lodash" : " ^2.5.0" ,
55
55
"eslint-plugin-promise" : " ^3.6.0" ,
56
56
"get-installed-path" : " ^4.0.8" ,
57
- "mocha" : " ^4 .0.1 " ,
57
+ "mocha" : " ^5 .0.4 " ,
58
58
"nyc" : " ^11.2.1" ,
59
59
"serverless" : " ^1.23.0" ,
60
60
"sinon" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -177,19 +177,20 @@ describe('AwsAlias', () => {
177
177
} ) ;
178
178
179
179
it ( 'after:aws:deploy:deploy:uploadArtifacts should resolve' , ( ) => {
180
- setBucketNameStub . returns ( BbPromise . resolve ( ) ) ;
181
- uploadAliasArtifactsStub . returns ( BbPromise . resolve ( ) ) ;
182
- return expect ( awsAlias . hooks [ 'after:aws:deploy:deploy:uploadArtifacts' ] ( ) ) . to . eventually . be . fulfilled
183
- . then ( ( ) => BbPromise . join (
184
- expect ( setBucketNameStub ) . to . be . calledOnce ,
185
- expect ( uploadAliasArtifactsStub ) . to . be . calledOnce
186
- ) ) ;
180
+ return expect ( awsAlias . hooks [ 'after:aws:deploy:deploy:uploadArtifacts' ] ( ) ) . to . eventually . be . fulfilled ;
187
181
} ) ;
188
182
189
183
it ( 'after:aws:deploy:deploy:updateStack should resolve' , ( ) => {
184
+ setBucketNameStub . returns ( BbPromise . resolve ( ) ) ;
185
+ uploadAliasArtifactsStub . returns ( BbPromise . resolve ( ) ) ;
190
186
updateAliasStackStub . returns ( BbPromise . resolve ( ) ) ;
191
187
return expect ( awsAlias . hooks [ 'after:aws:deploy:deploy:updateStack' ] ( ) ) . to . eventually . be . fulfilled
192
- . then ( ( ) => expect ( updateAliasStackStub ) . to . be . calledOnce ) ;
188
+ . then ( ( ) => {
189
+ expect ( setBucketNameStub ) . to . be . calledOnce ;
190
+ expect ( uploadAliasArtifactsStub ) . to . be . calledOnce ;
191
+ expect ( updateAliasStackStub ) . to . be . calledOnce ;
192
+ return null ;
193
+ } ) ;
193
194
} ) ;
194
195
195
196
it ( 'after:info:info should resolve' , ( ) => {
You can’t perform that action at this time.
0 commit comments