Created
July 31, 2020 14:21
-
-
Save oxlb/92360aa6834c7364249126c8fc4bc93a to your computer and use it in GitHub Desktop.
aurora-cdk.test.ts
This file contains hidden or 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
import { expect as expectCDK, matchTemplate, MatchStyle } from '@aws-cdk/assert'; | |
import * as cdk from '@aws-cdk/core'; | |
import * as AuroraCdk from '../lib/aurora-cdk-stack'; | |
test('Empty Stack', () => { | |
const app = new cdk.App(); | |
const deploymentStage = 'aurora-sls-dev'; | |
// WHEN | |
const stack = new AuroraCdk.AuroraSlsStack(app, 'AuroraSlsStack',{ env: { | |
region: process.env.region, | |
account: process.env.account | |
} },deploymentStage); | |
// THEN | |
expectCDK(stack).to(matchTemplate({ | |
"Resources": {} | |
}, MatchStyle.EXACT)) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment