Newer
Older
import { ScrollPagesPipe } from './scroll-pages.pipe';
import { Page } from 'common/models/page';
hasMaxWidth: false,
maxWidth: 0,
margin: 0,
backgroundColor: 'white',
alwaysVisible: false,
alwaysVisiblePagePosition: 'left',
alwaysVisibleAspectRatio: 50,
sections: []
const pipe = new ScrollPagesPipe();
it('should transform 3 pages to 2 scroll pages', () => {
const pages = [page, page, { ...page, alwaysVisible: true } as Page];