Skip to content

Commit 17aaedd

Browse files
committed
✅ (slider)-add accessibility test for coverage
1 parent cdda345 commit 17aaedd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from 'react';
2+
import { mount } from 'enzyme';
3+
import { expect } from 'chai';
4+
import Slider from '..';
5+
6+
/* eslint-disable no-undef */
7+
describe('Slider Accessibility tests tests', () => {
8+
let wrappedComponent;
9+
10+
// beforeEach(() => {
11+
// });
12+
13+
afterEach(() => {
14+
wrappedComponent.unmount();
15+
});
16+
17+
it('Is disabled when disabled prop is passed', () => {
18+
wrappedComponent = mount(<Slider disabled />);
19+
expect(wrappedComponent.props().disabled).equals(true);
20+
});
21+
});

0 commit comments

Comments
 (0)