agent-claw: automated task changes
This commit is contained in:
16
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/test/%name%.test.template.js
generated
vendored
Normal file
16
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/test/%name%.test.template.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
const cdk = require('aws-cdk-lib/core');
|
||||
const { Match, Template } = require('aws-cdk-lib/assertions');
|
||||
const %name.PascalCased% = require('../lib/%name%-stack');
|
||||
|
||||
test('SQS Queue and SNS Topic Created', () => {
|
||||
const app = new cdk.App();
|
||||
// WHEN
|
||||
const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
|
||||
// THEN
|
||||
const template = Template.fromStack(stack);
|
||||
template.hasResourceProperties('AWS::SQS::Queue', {
|
||||
VisibilityTimeout: 300,
|
||||
});
|
||||
|
||||
template.resourceCountIs('AWS::SNS::Topic', 1);
|
||||
});
|
||||
Reference in New Issue
Block a user