From b10039152b227b67338283797f5fcc7bd02f05a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Po=C5=9Bpiech?= Date: Wed, 14 Feb 2024 15:35:35 +0100 Subject: [PATCH] refactor --- packages/uniforms/__suites__/connectField.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uniforms/__suites__/connectField.tsx b/packages/uniforms/__suites__/connectField.tsx index 5c6eefcd8..39d0932c6 100644 --- a/packages/uniforms/__suites__/connectField.tsx +++ b/packages/uniforms/__suites__/connectField.tsx @@ -200,7 +200,7 @@ export function testConnectField() { }); test('connectField - when rendered with label', async () => { - const array = [ + const labelVariants = [ ['Props', '', 'Props'], ['Props', 'Schema', 'Props'], ['Props', undefined, 'Props'], @@ -212,7 +212,7 @@ export function testConnectField() { [undefined, undefined, ''], ]; - array.map(([propLabel, schemaLabel, resultLabel], index) => { + labelVariants.map(([propLabel, schemaLabel, resultLabel], index) => { const schema = { another: { type: String, optional: true }, field: { type: Object, label: schemaLabel },