Skip to content

Commit a9e12f3

Browse files
almost completed mainslider.test.jsx; added addtional comments
1 parent 44e9966 commit a9e12f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/__tests__/MainSlider.test.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import { useStoreContext } from '../store';
1111
configure({ adapter: new Adapter() });
1212

1313
jest.mock('../store');
14+
// the handle function in MainSlider returns out a Tooltip Component
1415
const handle = Tooltip;
16+
1517
describe('Unit testing for MainSlider.jsx', () => {
1618
let wrapper;
1719
const props = {
@@ -52,6 +54,7 @@ describe('Unit testing for MainSlider.jsx', () => {
5254

5355
describe('Testing for handle functional component', () => {
5456
// this doesnt work, not sure how to implement yet
57+
// the handle function should return a Tooltip component
5558
// eslint-disable-next-line jest/no-test-prefixes
5659
// eslint-disable-next-line jest/no-disabled-tests
5760
it.skip('handle prop should return <Tooltip /> component from rc-tooltip library', () => {

0 commit comments

Comments
 (0)