infrastracture.test.ts 437 B

12345678910111213
  1. import { expect as expectCDK, matchTemplate, MatchStyle } from '@aws-cdk/assert';
  2. import * as cdk from '@aws-cdk/core';
  3. import * as Infrastracture from '../lib/infrastructure-stack';
  4. test('Empty Stack', () => {
  5. const app = new cdk.App();
  6. // WHEN
  7. const stack = new Infrastracture.InfrastructureStack(app, 'MyTestStack');
  8. // THEN
  9. expectCDK(stack).to(matchTemplate({
  10. "Resources": {}
  11. }, MatchStyle.EXACT))
  12. });