Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Feb 14, 2024
1 parent 9c42aa7 commit b100391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/uniforms/__suites__/connectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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 },
Expand Down

0 comments on commit b100391

Please sign in to comment.