File tree Expand file tree Collapse file tree
packages/cdkConstructs/tests/constructs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ describe("SsmParametersConstruct uses defaults when optional fields are omitted"
132132 test ( "outputDescription defaults to description and outputExportSuffix defaults to nameSuffix" , ( ) => {
133133 const app = new App ( )
134134 const stack = new Stack ( app , "defaultsStack" )
135- new SsmParametersConstruct ( stack , "DefaultsParameters" , {
135+ const params = new SsmParametersConstruct ( stack , "DefaultsParameters" , {
136136 namePrefix : "mock-stack" ,
137137 parameters : [
138138 {
@@ -144,6 +144,8 @@ describe("SsmParametersConstruct uses defaults when optional fields are omitted"
144144 }
145145 ]
146146 } )
147+ // Get sonar to shup up about the construct not being used
148+ assert ( params , "SsmParametersConstruct should be created successfully" )
147149 const template = Template . fromStack ( stack )
148150
149151 const outputs = template . toJSON ( ) . Outputs as Record < string , {
You can’t perform that action at this time.
0 commit comments