Skip to content

Commit e1d3f5a

Browse files
author
Maharaj Haider
committed
reformatted vpc.test.ts
1 parent 9b44c78 commit e1d3f5a

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

packages/aws-cdk-lib/aws-ec2/test/vpc.test.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,47 +2748,47 @@ describe('vpc', () => {
27482748
});
27492749
});
27502750

2751-
test('EgressOnlyInternetGateWay is not created when no private subnet configured in dual stack', () => {
2751+
test('EgressOnlyInternetGateWay is not created when no private subnet configured in dual stack', () => {
27522752
// GIVEN
27532753
const app = new App();
27542754
const stack = new Stack(app, 'DualStackStack');
27552755

27562756
// WHEN
27572757
const vpc = new Vpc(stack, 'Vpc', {
2758-
ipProtocol: IpProtocol.DUAL_STACK,
2759-
subnetConfiguration: [
2760-
{
2761-
subnetType: SubnetType.PUBLIC,
2762-
name: 'public',
2763-
},
2764-
],
2758+
ipProtocol: IpProtocol.DUAL_STACK,
2759+
subnetConfiguration: [
2760+
{
2761+
subnetType: SubnetType.PUBLIC,
2762+
name: 'public',
2763+
},
2764+
],
27652765
});
27662766

27672767
// THEN
2768-
Template.fromStack(stack).resourceCountIs('AWS::EC2::EgressOnlyInternetGateway',0)
2768+
Template.fromStack(stack).resourceCountIs('AWS::EC2::EgressOnlyInternetGateway', 0);
27692769
});
2770-
test('EgressOnlyInternetGateWay is created when private subnet configured in dual stack', () => {
2770+
test('EgressOnlyInternetGateWay is created when private subnet configured in dual stack', () => {
27712771
// GIVEN
27722772
const app = new App();
27732773
const stack = new Stack(app, 'DualStackStack');
27742774

27752775
// WHEN
27762776
const vpc = new Vpc(stack, 'Vpc', {
2777-
ipProtocol: IpProtocol.DUAL_STACK,
2778-
subnetConfiguration: [
2779-
{
2780-
subnetType: SubnetType.PUBLIC,
2781-
name: 'public',
2782-
},
2783-
{
2784-
subnetType: SubnetType.PRIVATE_WITH_EGRESS,
2785-
name: 'private',
2786-
},
2787-
],
2777+
ipProtocol: IpProtocol.DUAL_STACK,
2778+
subnetConfiguration: [
2779+
{
2780+
subnetType: SubnetType.PUBLIC,
2781+
name: 'public',
2782+
},
2783+
{
2784+
subnetType: SubnetType.PRIVATE_WITH_EGRESS,
2785+
name: 'private',
2786+
},
2787+
],
27882788
});
27892789

27902790
// THEN
2791-
Template.fromStack(stack).resourceCountIs('AWS::EC2::EgressOnlyInternetGateway',1);
2791+
Template.fromStack(stack).resourceCountIs('AWS::EC2::EgressOnlyInternetGateway', 1);
27922792
});
27932793

27942794
test('error should occur if IPv6 properties are provided for a non-dual-stack VPC', () => {

0 commit comments

Comments
 (0)