44 */
55
66import assert from 'assert'
7- import { S3 } from 'aws-sdk'
87import sinon from 'sinon'
98import { S3Client } from '../../../../shared/clients/s3'
109import * as SamUtilsModule from '../../../../shared/sam/utils'
1110import { createBucketNamePrompter } from '../../../../shared/ui/sam/bucketPrompter'
1211import { AsyncCollection } from '../../../../shared/utilities/asyncCollection'
1312import { RequiredProps } from '../../../../shared/utilities/tsUtils'
1413import { samDeployUrl } from '../../../../shared/constants'
14+ import { Bucket } from '@aws-sdk/client-s3'
1515
1616describe ( 'createBucketNamePrompter' , ( ) => {
1717 let sandbox : sinon . SinonSandbox
@@ -32,7 +32,7 @@ describe('createBucketNamePrompter', () => {
3232 { Name : 'bucket1' , region : 'us-east-1' } ,
3333 { Name : 'bucket2' , region : 'us-east-1' } ,
3434 { Name : 'bucket3' , region : 'us-east-1' } ,
35- ] as unknown as AsyncCollection < RequiredProps < S3 . Bucket , 'Name' > & { readonly region : string } >
35+ ] as unknown as AsyncCollection < RequiredProps < Bucket , 'Name' > & { readonly region : string } >
3636
3737 const stub = sandbox . stub ( s3Client , 'listBucketsIterable' ) . callsFake ( ( ) => {
3838 return buckets
@@ -59,7 +59,7 @@ describe('createBucketNamePrompter', () => {
5959
6060 it ( 'should include no items found message if no stacks exist' , ( ) => {
6161 const stub = sandbox . stub ( s3Client , 'listBucketsIterable' ) . callsFake ( ( ) => {
62- return [ ] as unknown as AsyncCollection < RequiredProps < S3 . Bucket , 'Name' > & { readonly region : string } >
62+ return [ ] as unknown as AsyncCollection < RequiredProps < Bucket , 'Name' > & { readonly region : string } >
6363 } )
6464 sandbox . stub ( SamUtilsModule , 'getRecentResponse' ) . returns ( undefined ) // Mock recent bucket
6565
0 commit comments