Created
October 24, 2020 05:57
-
-
Save brianfoody/888b345f0f7988ecf0eadf3f5c4930ad to your computer and use it in GitHub Desktop.
CDK Tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("EventBridge and resources are created", () => { | |
const app = new cdk.App(); | |
const stack = new MyEvents.MyEventsStack(app, "MyTestStack"); | |
expectCDK(stack).to(haveResource("AWS::Events::EventBus")); | |
expectCDK(stack).to(haveResource("AWS::EventSchemas::Registry")); | |
expectCDK(stack).to(haveResource("AWS::EventSchemas::Schema")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment