소스 검색

Get rid of the unnecessary test.

NaotoshiFujita 3 년 전
부모
커밋
c6fe003e72
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/js/components/Slides/test/slide.test.ts

+ 2 - 3
src/js/components/Slides/test/slide.test.ts

@@ -256,16 +256,15 @@ describe( 'Slide', () => {
   } );
 
 
-  test( 'should assign the tabpanel role without `aria-roledescription` if the pagination option is enabled.', () => {
+  test( 'should assign the tabpanel role if the pagination option is enabled.', () => {
     const splide = init( { pagination: true } );
 
     splide.Components.Slides.forEach( ( { slide } ) => {
       expect( slide.getAttribute( 'role' ) ).toBe( 'tabpanel' );
-      expect( slide.getAttribute( 'aria-roledescription' ) ).toBeNull();
     } );
   } );
 
-  test( 'should assign assign group tab role with `aria-roledescription` if the pagination option is disabled.', () => {
+  test( 'should assign group tab role with `aria-roledescription` if the pagination option is disabled.', () => {
     const splide = init( { pagination: false } );
 
     splide.Components.Slides.forEach( ( { slide } ) => {