Skip to content

Commit d15b6f7

Browse files
committed
Go away sonar
1 parent f5a4f8d commit d15b6f7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cdkConstructs/tests/constructs/ssmParametersConstruct.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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, {

0 commit comments

Comments
 (0)