Skip to content

Commit

Permalink
fix tests after rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kvchari committed Sep 2, 2021
1 parent e35db38 commit 5480c87
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions extensions/amp-inline-gallery/1.0/test/test-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
<BentoInlineGallery>
<BaseCarousel>
Expand All @@ -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 = (
<BentoInlineGallery>
<BaseCarousel>
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5480c87

Please sign in to comment.