Skip to content

Commit

Permalink
Fix test expect
Browse files Browse the repository at this point in the history
  • Loading branch information
jede committed Sep 30, 2020
1 parent 20786ca commit 05f4296
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -1693,9 +1693,11 @@ describe('#AwsCompileCloudFrontEvents() package', () => {
],
},
},
}).then(({ awsNaming, cfTemplate }) => {
const edgeResolvedName = awsNaming.getLambdaLogicalId(edgeFunctionName);
expect(cfTemplate.Resources[edgeResolvedName].Properties).not.to.contain.keys('Environment');
}).then(({ cfTemplate }) => {
const behavior =
cfTemplate.Resources.CloudFrontDistribution.Properties.DistributionConfig
.DefaultCacheBehavior;
expect(behavior).to.contain.keys('AllowedMethods', 'CachedMethods', 'ForwardedValues');
});
});

Expand Down

0 comments on commit 05f4296

Please sign in to comment.