@@ -6,17 +6,17 @@ const label = "portrait collection"
6
6
describe ( 'carouselBehavior.ts' , ( ) => {
7
7
8
8
describe ( 'root' , ( ) => {
9
- test ( `set "role=region" when carousel has NO navigation` , ( ) => {
9
+ test ( `sets "role=region" when carousel has NO navigation` , ( ) => {
10
10
const expectedResult = carouselBehavior ( { ariaLiveOn : false , navigation : false } )
11
11
expect ( expectedResult . attributes . root . role ) . toEqual ( 'region' )
12
12
} )
13
13
14
- test ( 'set "aria-roledescription" when carousel has NO navigation' , ( ) => {
14
+ test ( 'sets "aria-roledescription" when carousel has NO navigation' , ( ) => {
15
15
const expectedResult = carouselBehavior ( { ariaLiveOn : false , navigation : false , ariaRoleDescription : roleDescription } )
16
16
expect ( expectedResult . attributes . root [ 'aria-roledescription' ] ) . toEqual ( roleDescription )
17
17
} )
18
18
19
- test ( 'set "aria-label" when carousel has NO navigation' , ( ) => {
19
+ test ( 'sets "aria-label" when carousel has NO navigation' , ( ) => {
20
20
const expectedResult = carouselBehavior ( { ariaLiveOn : false , navigation : false , ariaLabel : label } )
21
21
expect ( expectedResult . attributes . root [ 'aria-label' ] ) . toEqual ( label )
22
22
} )
@@ -38,12 +38,12 @@ describe('carouselBehavior.ts', () => {
38
38
} )
39
39
40
40
describe ( 'itemsContainer' , ( ) => {
41
- test ( 'set "aria-roledescription" when carousel has navigation' , ( ) => {
41
+ test ( 'sets "aria-roledescription" when carousel has navigation' , ( ) => {
42
42
const expectedResult = carouselBehavior ( { ariaLiveOn : false , navigation : true , ariaRoleDescription : roleDescription } )
43
43
expect ( expectedResult . attributes . itemsContainer [ 'aria-roledescription' ] ) . toEqual ( roleDescription )
44
44
} )
45
45
46
- test ( 'set "aria-label" when carousel has navigation' , ( ) => {
46
+ test ( 'sets "aria-label" when carousel has navigation' , ( ) => {
47
47
const expectedResult = carouselBehavior ( { ariaLiveOn : false , navigation : true , ariaLabel : label } )
48
48
expect ( expectedResult . attributes . itemsContainer [ 'aria-label' ] ) . toEqual ( label )
49
49
} )
0 commit comments