Skip to content

Commit

Permalink
feat(codeguruprofiler): add support for ComputePlatform in ProfilingG…
Browse files Browse the repository at this point in the history
…roup
  • Loading branch information
SeekerWing committed Aug 14, 2020
1 parent 3fb78ab commit 00300cc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect } from '@aws-cdk/assert';
import { expect, haveResourceLike } from '@aws-cdk/assert';
import { AccountRootPrincipal, Role } from '@aws-cdk/aws-iam';
import { Stack } from '@aws-cdk/core';
import { ProfilingGroup, ComputePlatform } from '../lib';
Expand Down Expand Up @@ -195,9 +195,9 @@ describe('profiling group', () => {
computePlatform: ComputePlatform.AWS_LAMBDA,
});

expect(stack).toHaveResourceLike('AWS::CodeGuruProfiler::ProfilingGroup', {
expect(stack).to(haveResourceLike('AWS::CodeGuruProfiler::ProfilingGroup', {
'ComputePlatform': 'AWSLambda',
});
}));
});

test('default profiling group without name', () => {
Expand Down

0 comments on commit 00300cc

Please sign in to comment.