Skip to content

Commit abbc5b5

Browse files
committed
fix: change type on test data
1 parent cccaed6 commit abbc5b5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/core/src/test/shared/sam/deploy.test.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import * as ProcessUtilsModule from '../../../shared/utilities/processUtils'
2525
import * as ProcessTerminalModule from '../../../shared/sam/processTerminal'
2626
import * as ResolveEnvModule from '../../../shared/env/resolveEnv'
2727
import * as SamConfiModule from '../../../shared/sam/config'
28-
import { RequiredProps } from '../../../shared/utilities/tsUtils'
2928
import { UserAgent as __UserAgent } from '@smithy/types'
3029

3130
import { SamAppLocation } from '../../../awsService/appBuilder/explorer/samProject'
@@ -1287,14 +1286,10 @@ describe('SAM Deploy', () => {
12871286
})
12881287
})
12891288

1290-
const s3BucketListSummary: Array<
1291-
RequiredProps<S3Bucket, 'Name'> & {
1292-
readonly region: string
1293-
}
1294-
> = [
1295-
{ Name: 'stack-1-bucket', region: 'us-west-2' },
1296-
{ Name: 'stack-2-bucket', region: 'us-west-2' },
1297-
{ Name: 'stack-3-bucket', region: 'us-west-2' },
1289+
const s3BucketListSummary: Array<Omit<S3Bucket, 'BucketRegion'> & { readonly region: string }> = [
1290+
{ Name: 'stack-1-bucket', region: 'us-west-2', Arn: 'arn-1' },
1291+
{ Name: 'stack-2-bucket', region: 'us-west-2', Arn: 'arn-2' },
1292+
{ Name: 'stack-3-bucket', region: 'us-west-2', Arn: 'arn-3' },
12981293
]
12991294

13001295
const stackSummaries: CloudFormationClientModule.StackSummary[][] = [

0 commit comments

Comments
 (0)