From 5480c87301d71bd7ff45e1a6ec838d1baf19b04b Mon Sep 17 00:00:00 2001 From: Keshav Varadachari Date: Tue, 31 Aug 2021 13:59:17 -0400 Subject: [PATCH] fix tests after rename --- .../amp-inline-gallery/1.0/test/test-component.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/extensions/amp-inline-gallery/1.0/test/test-component.js b/extensions/amp-inline-gallery/1.0/test/test-component.js index e0b866dc2b031..9cd702bdf1dcc 100644 --- a/extensions/amp-inline-gallery/1.0/test/test-component.js +++ b/extensions/amp-inline-gallery/1.0/test/test-component.js @@ -6,8 +6,8 @@ import {BentoInlineGalleryThumbnails} from '../thumbnails'; import {mount} from 'enzyme'; describes.sandboxed('InlineGallery preact component', {}, () => { - describe('Pagination component', () => { - it('should render BaseCarousel and Pagination', () => { + describe('BentoInlineGalleryPagination component', () => { + it('should render BaseCarousel and BentoInlineGalleryPagination', () => { const jsx = ( @@ -24,13 +24,13 @@ describes.sandboxed('InlineGallery preact component', {}, () => { const slides = carousel.find('[data-slide]'); expect(slides).to.have.lengthOf(3); - const pagination = wrapper.find('Pagination'); + const pagination = wrapper.find('BentoInlineGalleryPagination'); expect(pagination).to.have.lengthOf(1); }); }); describe('Thumbnail component', () => { - it('should render BaseCarousel and Thumbnails', () => { + it('should render BaseCarousel and BentoInlineGalleryThumbnails', () => { const jsx = ( @@ -48,7 +48,7 @@ describes.sandboxed('InlineGallery preact component', {}, () => { const slides = carousels.first().find('[data-slide]'); expect(slides).to.have.lengthOf(3); - const thumbnails = wrapper.find('Thumbnails'); + const thumbnails = wrapper.find('BentoInlineGalleryThumbnails'); expect(thumbnails).to.have.lengthOf(1); const generatedCarousel = thumbnails.find('BaseCarousel'); expect(generatedCarousel).to.have.lengthOf(1); @@ -83,7 +83,7 @@ describes.sandboxed('InlineGallery preact component', {}, () => { const slides = carousels.first().find('[data-slide]'); expect(slides).to.have.lengthOf(3); - const thumbnails = wrapper.find('Thumbnails'); + const thumbnails = wrapper.find('BentoInlineGalleryThumbnails'); expect(thumbnails).to.have.lengthOf(1); const generatedCarousel = thumbnails.find('BaseCarousel'); expect(generatedCarousel).to.have.lengthOf(1); @@ -124,7 +124,7 @@ describes.sandboxed('InlineGallery preact component', {}, () => { const slides = carousels.first().find('[data-slide]'); expect(slides).to.have.lengthOf(3); - const thumbnails = wrapper.find('Thumbnails'); + const thumbnails = wrapper.find('BentoInlineGalleryThumbnails'); expect(thumbnails).to.have.lengthOf(1); const generatedCarousel = thumbnails.find('BaseCarousel'); expect(generatedCarousel).to.have.lengthOf(1);