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 5454 "eslint-plugin-lodash" : " ^2.5.0" ,
5555 "eslint-plugin-promise" : " ^3.6.0" ,
5656 "get-installed-path" : " ^4.0.8" ,
57- "mocha" : " ^4 .0.1 " ,
57+ "mocha" : " ^5 .0.4 " ,
5858 "nyc" : " ^11.2.1" ,
5959 "serverless" : " ^1.23.0" ,
6060 "sinon" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -177,19 +177,20 @@ describe('AwsAlias', () => {
177177 } ) ;
178178
179179 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 ;
187181 } ) ;
188182
189183 it ( 'after:aws:deploy:deploy:updateStack should resolve' , ( ) => {
184+ setBucketNameStub . returns ( BbPromise . resolve ( ) ) ;
185+ uploadAliasArtifactsStub . returns ( BbPromise . resolve ( ) ) ;
190186 updateAliasStackStub . returns ( BbPromise . resolve ( ) ) ;
191187 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+ } ) ;
193194 } ) ;
194195
195196 it ( 'after:info:info should resolve' , ( ) => {
You can’t perform that action at this time.
0 commit comments