Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
madeline-k committed May 14, 2021
1 parent 323d357 commit 624d6f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/@aws-cdk/aws-ecs/test/ec2/ec2-service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nodeunitShim({
memoryLimitMiB: 512,
});

new ecs.Ec2Service(stack, 'Ec2Service', {
const service = new ecs.Ec2Service(stack, 'Ec2Service', {
cluster,
taskDefinition,
});
Expand All @@ -47,6 +47,8 @@ nodeunitShim({
EnableECSManagedTags: false,
}));

test.notEqual(service.node.defaultChild, undefined);

test.done();
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ nodeunitShim({
image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),
});

new ecs.FargateService(stack, 'FargateService', {
const service = new ecs.FargateService(stack, 'FargateService', {
cluster,
taskDefinition,
});
Expand Down Expand Up @@ -79,6 +79,8 @@ nodeunitShim({
},
}));

test.notEqual(service.node.defaultChild, undefined);

test.done();
},

Expand Down

0 comments on commit 624d6f6

Please sign in to comment.