diff --git a/tests/index.test.tsx b/tests/index.test.tsx index 0fd2a33..92013cc 100644 --- a/tests/index.test.tsx +++ b/tests/index.test.tsx @@ -120,12 +120,12 @@ describe('rc-checkbox', () => { expect(inputEl.attributes.value.value).toEqual('6'); }); - it('passes title prop to input', () => { + it('passes title prop to wrapper', () => { const { container } = render(); - const inputEl = container.querySelector('input')!; + const wrapper = container.querySelector('.rc-checkbox')!; // @ts-ignore - expect(inputEl.attributes.title.value).toEqual('my-custom-title'); + expect(wrapper.attributes.title.value).toEqual('my-custom-title'); }); it('onFocus', () => {