Skip to content

Commit d5eb24a

Browse files
Fix tests
1 parent 43ac354 commit d5eb24a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

packages/blocks/terraform/test/hcledit-cli.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,13 @@ describe('Update Resource Properties', () => {
214214
);
215215
});
216216

217-
test.each([
217+
test.each<{
218+
description: string;
219+
resourceType: string;
220+
resourceName: string;
221+
propertyName: string;
222+
expectedMessage: string;
223+
}>([
218224
{
219225
description: 'resource type contains invalid characters',
220226
resourceType: 'aws_instance; rm -rf /',
@@ -237,14 +243,8 @@ describe('Update Resource Properties', () => {
237243
expectedMessage: 'Property name at index 0 contains invalid characters',
238244
},
239245
])(
240-
({ description }) => `should throw when ${description}`,
241-
async ({
242-
description,
243-
resourceType,
244-
resourceName,
245-
propertyName,
246-
expectedMessage,
247-
}) => {
246+
'should throw when $description',
247+
async ({ resourceType, resourceName, propertyName, expectedMessage }) => {
248248
await expect(
249249
updateResourceProperties(testTemplate, resourceType, resourceName, [
250250
{ propertyName, propertyValue: 'value' },

0 commit comments

Comments
 (0)