Skip to content

Commit

Permalink
chore: instance specific defaultChild tests (aws#4199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Gaussen authored and mergify[bot] committed Sep 25, 2019
1 parent 6e75168 commit c28b4b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ export = {
});

// THEN
test.notEqual(asg.node.defaultChild, undefined);
test.ok(asg.node.defaultChild instanceof autoscaling.CfnAutoScalingGroup);

test.done();
},
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-ec2/test/test.vpc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { countResources, expect, haveResource, haveResourceLike, isSuperObject, MatchStyle } from '@aws-cdk/assert';
import { CfnOutput, Lazy, Stack, Tag } from '@aws-cdk/core';
import { Test } from 'nodeunit';
import { AclCidr, AclTraffic, CfnVPC, DefaultInstanceTenancy, NetworkAcl, NetworkAclEntry,
import { AclCidr, AclTraffic, CfnSubnet, CfnVPC, DefaultInstanceTenancy, NetworkAcl, NetworkAclEntry,
Subnet, SubnetType, TrafficDirection, Vpc } from '../lib';

export = {
Expand Down Expand Up @@ -590,7 +590,7 @@ export = {

const vpc = new Vpc(stack, 'VpcNetwork');

test.notEqual(vpc.publicSubnets[0].node.defaultChild, undefined);
test.ok(vpc.publicSubnets[0].node.defaultChild instanceof CfnSubnet);

test.done();
},
Expand Down

0 comments on commit c28b4b5

Please sign in to comment.