From 339b63f3de27e6171b980541fc50430523fdadcf Mon Sep 17 00:00:00 2001 From: ivan katliarchuk Date: Thu, 26 Dec 2024 17:43:31 +0000 Subject: [PATCH] feat(23410): prettier fix Signed-off-by: ivan katliarchuk --- .../versioning/aws-eks-addon/index.spec.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/modules/versioning/aws-eks-addon/index.spec.ts b/lib/modules/versioning/aws-eks-addon/index.spec.ts index 04fb51b2c9b67f..ed62965394b90f 100644 --- a/lib/modules/versioning/aws-eks-addon/index.spec.ts +++ b/lib/modules/versioning/aws-eks-addon/index.spec.ts @@ -30,12 +30,18 @@ describe('modules/versioning/aws-eks-addon/index', () => { }); describe('isCompatible(version)', () => { - it('should return false', () => { - expect(aws.isCompatible('v1.11.7')).toBeFalsy(); - expect(aws.isCompatible('v1.11')).toBeFalsy(); - expect(aws.isCompatible('v1.11.7-noneksbuild')).toBeFalsy(); - expect(aws.isCompatible('v1.11.7-noneksbuild.1')).toBeFalsy(); - expect(aws.isCompatible('v1.11.7-eksbuild')).toBeFalsy(); + it.each` + input | expected + ${''} | ${false} + ${'abrakadabra'} | ${false} + ${'v1.11.7'} | ${false} + ${'v1.11.7.6'} | ${false} + ${'v1.11.7-noneksbuild'} | ${false} + ${'v1.11.7-noneksbuild.1'} | ${false} + ${'v1.11.7-eksbuild'} | ${false} + `('isCompatible("$input") === $expected', ({ input, expected }) => { + const actual = aws.isCompatible(input); + expect(actual).toBe(expected); }); });