|
@@ -22,8 +22,8 @@ describe( 'The Layout ', () => {
|
|
|
expect( slide.style.height ).toBe( '40em' );
|
|
|
} );
|
|
|
|
|
|
- test( 'should set proper width of a slide element according to a perView option in horizontal mode.', () => {
|
|
|
- const splide = new Splide( '#splide', { perView: 2 }, COMPLETE );
|
|
|
+ test( 'should set proper width of a slide element according to a perPage option in horizontal mode.', () => {
|
|
|
+ const splide = new Splide( '#splide', { perPage: 2 }, COMPLETE );
|
|
|
splide.mount();
|
|
|
|
|
|
const track = splide.Components.Elements.track;
|
|
@@ -36,13 +36,13 @@ describe( 'The Layout ', () => {
|
|
|
const slide = splide.Components.Elements.slides.pop();
|
|
|
expect( slide.style.width ).toBe( '400px' );
|
|
|
|
|
|
- // Is the width updated correctly after perView option is updated?
|
|
|
- splide.options = { perView: 4 };
|
|
|
+ // Is the width updated correctly after perPage option is updated?
|
|
|
+ splide.options = { perPage: 4 };
|
|
|
expect( slide.style.width ).toBe( '200px' );
|
|
|
} );
|
|
|
|
|
|
- test( 'should set proper height of a slide element according to a perView option in vertical mode.', () => {
|
|
|
- const splide = new Splide( '#splide', { direction: 'ttb', perView: 2, height: 400 }, COMPLETE );
|
|
|
+ test( 'should set proper height of a slide element according to a perPage option in vertical mode.', () => {
|
|
|
+ const splide = new Splide( '#splide', { direction: 'ttb', perPage: 2, height: 400 }, COMPLETE );
|
|
|
splide.mount();
|
|
|
|
|
|
const track = splide.Components.Elements.track;
|
|
@@ -52,7 +52,7 @@ describe( 'The Layout ', () => {
|
|
|
const slide = splide.Components.Elements.slides.pop();
|
|
|
expect( slide.style.height ).toBe( '200px' );
|
|
|
|
|
|
- splide.options = { perView: 4 };
|
|
|
+ splide.options = { perPage: 4 };
|
|
|
expect( slide.style.height ).toBe( '100px' );
|
|
|
} );
|
|
|
|