@@ -112,12 +112,16 @@ describe('test/unit/lib/plugins/aws/deploy/index.test.js', () => {
112112 deleteObjects : deleteObjectsStub ,
113113 listObjectsV2 : { Contents : [ ] } ,
114114 upload : s3UploadStub ,
115- headBucket : { } ,
116115 getBucketLocation : ( ) => {
117116 return {
118117 LocationConstraint : 'us-east-1' ,
119118 } ;
120119 } ,
120+ headBucket : ( ) => {
121+ return {
122+ BucketRegion : 'us-east-1' ,
123+ } ;
124+ } ,
121125 } ,
122126 CloudFormation : {
123127 describeStacks : describeStacksStub ,
@@ -523,12 +527,16 @@ describe('test/unit/lib/plugins/aws/deploy/index.test.js', () => {
523527 deleteObjects : deleteObjectsStub ,
524528 listObjectsV2 : { Contents : [ ] } ,
525529 upload : s3UploadStub ,
526- headBucket : { } ,
527530 getBucketLocation : ( ) => {
528531 return {
529532 LocationConstraint : 'us-east-1' ,
530533 } ;
531534 } ,
535+ headBucket : ( ) => {
536+ return {
537+ BucketRegion : 'us-east-1' ,
538+ } ;
539+ } ,
532540 } ,
533541 CloudFormation : {
534542 describeStacks : describeStacksStub ,
@@ -1206,6 +1214,9 @@ describe('test/unit/lib/plugins/aws/deploy/index.test.js', () => {
12061214 getBucketLocation : ( ) => {
12071215 throw new Error ( ) ;
12081216 } ,
1217+ headBucket : ( ) => {
1218+ throw new Error ( ) ;
1219+ } ,
12091220 } ,
12101221 CloudFormation : {
12111222 describeStacks : { Stacks : [ { } ] } ,
@@ -1242,6 +1253,11 @@ describe('test/unit/lib/plugins/aws/deploy/index.test.js', () => {
12421253 LocationConstraint : 'us-west-1' ,
12431254 } ;
12441255 } ,
1256+ headBucket : ( ) => {
1257+ return {
1258+ BucketRegion : 'us-west-1' ,
1259+ } ;
1260+ } ,
12451261 } ,
12461262 CloudFormation : {
12471263 describeStacks : { Stacks : [ { } ] } ,
0 commit comments