Skip to content

Commit efa8686

Browse files
committed
refactor: Rename variables in render-option tests
1 parent 9ab75e2 commit efa8686

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/multiselect/__tests__/render-option.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ describe('Multiselect renderOption', () => {
2929

3030
test('receives correct item properties for item option', () => {
3131
const renderOption = jest.fn(() => <div>Custom</div>);
32-
const childOption = { label: 'Test', value: '1' };
32+
const itemOption = { label: 'Test', value: '1' };
3333
const wrapper = renderMultiselect({
34-
options: [childOption],
34+
options: [itemOption],
3535
renderOption,
3636
});
3737
wrapper.openDropdown();
3838
expect(renderOption).toHaveBeenCalledWith(
3939
expect.objectContaining({
4040
item: expect.objectContaining({
41-
option: expect.objectContaining(childOption),
41+
option: expect.objectContaining(itemOption),
4242
selected: false,
4343
highlighted: false,
4444
disabled: false,

src/select/__tests__/render-option.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ describe('Select renderOption', () => {
2929

3030
test('receives correct item properties for item option', () => {
3131
const renderOption = jest.fn(() => <div>Custom</div>);
32-
const childOption = { label: 'Test', value: '1' };
32+
const itemOption = { label: 'Test', value: '1' };
3333
const wrapper = renderSelect({
34-
options: [childOption],
34+
options: [itemOption],
3535
renderOption,
3636
});
3737
wrapper.openDropdown();
3838
expect(renderOption).toHaveBeenCalledWith(
3939
expect.objectContaining({
4040
item: expect.objectContaining({
41-
option: expect.objectContaining(childOption),
41+
option: expect.objectContaining(itemOption),
4242
selected: false,
4343
highlighted: false,
4444
disabled: false,

0 commit comments

Comments
 (0)