Skip to content

Commit

Permalink
test: Fix function tests
Browse files Browse the repository at this point in the history
  • Loading branch information
setu4993 committed Dec 25, 2021
1 parent e6d466a commit d55c1f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-lambda-python/test/function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,21 @@ test('allows specifying hash type', () => {
entry: 'test/lambda-handler-nodeps',
index: 'index.py',
handler: 'handler',
assetHashType: AssetHashType.SOURCE,
bundling: { assetHashType: AssetHashType.SOURCE },
});

new PythonFunction(stack, 'output', {
entry: 'test/lambda-handler-nodeps',
index: 'index.py',
handler: 'handler',
assetHashType: AssetHashType.OUTPUT,
bundling: { assetHashType: AssetHashType.OUTPUT },
});

new PythonFunction(stack, 'custom', {
entry: 'test/lambda-handler-nodeps',
index: 'index.py',
handler: 'handler',
assetHash: 'MY_CUSTOM_HASH',
bundling: { assetHash: 'MY_CUSTOM_HASH' },
});

Template.fromStack(stack).hasResourceProperties('AWS::Lambda::Function', {
Expand Down

0 comments on commit d55c1f6

Please sign in to comment.