@@ -5,12 +5,12 @@ import * as s3 from '@aws-cdk/aws-s3';
55import * as cdk from '@aws-cdk/core' ;
66import * as constructs from 'constructs' ;
77import * as _ from 'lodash' ;
8- import * as nodeunit from 'nodeunit' ;
8+ import { nodeunitShim , Test } from 'nodeunit-shim ' ;
99import * as cpactions from '../../lib' ;
1010
11- export = nodeunit . testCase ( {
11+ nodeunitShim ( {
1212 CreateReplaceChangeSet : {
13- 'works' ( test : nodeunit . Test ) {
13+ 'works' ( test : Test ) {
1414 const app = new cdk . App ( ) ;
1515 const stack = new cdk . Stack ( app , 'Stack' ) ;
1616 const pipelineRole = new RoleDouble ( stack , 'PipelineRole' ) ;
@@ -51,7 +51,7 @@ export = nodeunit.testCase({
5151 test . done ( ) ;
5252 } ,
5353
54- 'uses a single permission statement if the same ChangeSet name is used' ( test : nodeunit . Test ) {
54+ 'uses a single permission statement if the same ChangeSet name is used' ( test : Test ) {
5555 const stack = new cdk . Stack ( ) ;
5656 const pipelineRole = new RoleDouble ( stack , 'PipelineRole' ) ;
5757 const artifact = new codepipeline . Artifact ( 'TestArtifact' ) ;
@@ -110,7 +110,7 @@ export = nodeunit.testCase({
110110 } ,
111111
112112 ExecuteChangeSet : {
113- 'works' ( test : nodeunit . Test ) {
113+ 'works' ( test : Test ) {
114114 const stack = new cdk . Stack ( ) ;
115115 const pipelineRole = new RoleDouble ( stack , 'PipelineRole' ) ;
116116 const stage = new StageDouble ( {
@@ -137,7 +137,7 @@ export = nodeunit.testCase({
137137 test . done ( ) ;
138138 } ,
139139
140- 'uses a single permission statement if the same ChangeSet name is used' ( test : nodeunit . Test ) {
140+ 'uses a single permission statement if the same ChangeSet name is used' ( test : Test ) {
141141 const stack = new cdk . Stack ( ) ;
142142 const pipelineRole = new RoleDouble ( stack , 'PipelineRole' ) ;
143143 new StageDouble ( {
@@ -181,7 +181,7 @@ export = nodeunit.testCase({
181181 } ,
182182 } ,
183183
184- 'the CreateUpdateStack Action sets the DescribeStack*, Create/Update/DeleteStack & PassRole permissions' ( test : nodeunit . Test ) {
184+ 'the CreateUpdateStack Action sets the DescribeStack*, Create/Update/DeleteStack & PassRole permissions' ( test : Test ) {
185185 const stack = new cdk . Stack ( ) ;
186186 const pipelineRole = new RoleDouble ( stack , 'PipelineRole' ) ;
187187 const action = new cpactions . CloudFormationCreateUpdateStackAction ( {
@@ -207,7 +207,7 @@ export = nodeunit.testCase({
207207 test . done ( ) ;
208208 } ,
209209
210- 'the DeleteStack Action sets the DescribeStack*, DeleteStack & PassRole permissions' ( test : nodeunit . Test ) {
210+ 'the DeleteStack Action sets the DescribeStack*, DeleteStack & PassRole permissions' ( test : Test ) {
211211 const stack = new cdk . Stack ( ) ;
212212 const pipelineRole = new RoleDouble ( stack , 'PipelineRole' ) ;
213213 const action = new cpactions . CloudFormationDeleteStackAction ( {
@@ -238,7 +238,7 @@ interface PolicyStatementJson {
238238}
239239
240240function _assertActionMatches (
241- test : nodeunit . Test ,
241+ test : Test ,
242242 stack : cdk . Stack ,
243243 actions : FullAction [ ] ,
244244 provider : string ,
@@ -279,7 +279,7 @@ function _hasAction(
279279}
280280
281281function _assertPermissionGranted (
282- test : nodeunit . Test ,
282+ test : Test ,
283283 stack : cdk . Stack ,
284284 statements : iam . PolicyStatement [ ] ,
285285 action : string ,
0 commit comments