Skip to content

Commit

Permalink
Added (multiple) label to test names
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxovaiko committed Mar 31, 2024
1 parent ce1e1fe commit 9dec81c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/uniforms/__suites__/SelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function testSelectField(
expect(onChange).not.toHaveBeenCalled();
});

test('<SelectField> - renders a select which correctly reacts on change (uncheck) by value', () => {
test('<SelectField> - (multiple) renders a select which correctly reacts on change (uncheck) by value', () => {
const onChange = jest.fn();
renderWithZod({
element: <SelectField fieldType={Array} name="x" onChange={onChange} />,
Expand All @@ -75,7 +75,7 @@ export function testSelectField(
expect(onChange).toHaveBeenCalledWith([]);
});

test('<SelectField> - renders a select which correctly reacts on change (uncheck) by selectedIndex', () => {
test('<SelectField> - (multiple) renders a select which correctly reacts on change (uncheck) by selectedIndex', () => {
const onChange = jest.fn();
renderWithZod({
element: <SelectField fieldType={Array} name="x" onChange={onChange} />,
Expand All @@ -86,7 +86,7 @@ export function testSelectField(
expect(onChange).toHaveBeenCalledWith([]);
});

test('<SelectField> - renders a select which correctly reacts on change (checked) by selectedIndex', () => {
test('<SelectField> - (multiple) renders a select which correctly reacts on change (checked) by selectedIndex', () => {
const onChange = jest.fn();
renderWithZod({
element: <SelectField fieldType={Array} name="x" onChange={onChange} />,
Expand Down Expand Up @@ -458,7 +458,7 @@ export function testSelectField(
expect(onChange).toHaveBeenCalledWith('b');
});

test('<SelectField checkboxes> - renders a set of checkboxes which correctly reacts on change (array check)', () => {
test('<SelectField checkboxes> - (multiple) renders a set of checkboxes which correctly reacts on change (array check)', () => {
const onChange = jest.fn();
renderWithZod({
element: (
Expand All @@ -479,7 +479,7 @@ export function testSelectField(
expect(onChange).toHaveBeenCalledWith(['a']);
});

test('<SelectField checkboxes> - renders a set of checkboxes which correctly reacts on change (array uncheck)', () => {
test('<SelectField checkboxes> - (multiple) renders a set of checkboxes which correctly reacts on change (array uncheck)', () => {
const onChange = jest.fn();
renderWithZod({
element: (
Expand Down

0 comments on commit 9dec81c

Please sign in to comment.