This repository was archived by the owner on Sep 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import a11yTestHelper from " ../lib/a11yTestHelper" ;
2
+ import a11yTestHelper from ' ../lib/a11yTestHelper' ;
3
3
import { mount } from 'enzyme' ;
4
4
import InputDate from './index' ;
5
5
6
6
describe ( 'InputDate' , ( ) => {
7
- it ( 'should pass accessibility audit' , done => {
7
+ it ( 'should pass accessibility audit' , ( done ) => {
8
8
const onChange = jest . fn ( ) ;
9
9
a11yTestHelper . testComponent ( < InputDate
10
10
input = { {
@@ -15,7 +15,7 @@ describe('InputDate', () => {
15
15
month : 21 ,
16
16
year : 7 ,
17
17
} }
18
- /> , function ( results ) {
18
+ /> , [ ] , ( results ) => {
19
19
expect ( results . violations . length ) . toBe ( 0 ) ;
20
20
done ( ) ;
21
21
} ) ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { mount } from 'enzyme' ;
3
+ import a11yTestHelper from '../lib/a11yTestHelper' ;
3
4
import InputTime from './index' ;
4
5
5
6
describe ( 'InputTime' , ( ) => {
7
+ it ( 'should pass accessibility audit' , ( done ) => {
8
+ const onChange = jest . fn ( ) ;
9
+ a11yTestHelper . testComponent ( < InputTime
10
+ input = { {
11
+ onChange,
12
+ } }
13
+ /> , [ ] , ( results ) => {
14
+ expect ( results . violations . length ) . toBe ( 0 ) ;
15
+ done ( ) ;
16
+ } ) ;
17
+ } ) ;
6
18
it ( 'should trigger onChange when hour is selected' , ( ) => {
7
19
const onChange = jest . fn ( ) ;
8
20
const wrapper = mount (
You can’t perform that action at this time.
0 commit comments