Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lazy-load): lazyLoadOffset option does not work #177

Merged
merged 1 commit into from
Dec 25, 2018
Merged

Conversation

sipayRT
Copy link
Member

@sipayRT sipayRT commented Dec 25, 2018

No description provided.

{initialState: {view: {lazyLoadOffset: 1}}}
);

assert.lengthOf(screenshotComponent.find('Placeholder'), 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

го вместо строки инстанс передавать

import {mkConnectedComponent} from '../utils';

describe('Screenshot component', () => {
const getLazyLoadComponent_ = ({lazyLoadOffset = 1} = {}) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы вынес этот хелпер под describe, в котором он используется

const screenshotComponent = mkConnectedComponent(
<Screenshot image={{path: '', size: {}}} />,
{initialState: {view: {lazyLoadOffset: 1}}}
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно в отдельный хелпер вынести - сейчас дублирование.

@sipayRT sipayRT merged commit 37570a2 into master Dec 25, 2018
@sipayRT sipayRT deleted the sp.lazyLoad branch December 25, 2018 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants