Skip to content

FetchAPI and Comparer#59

Open
YogiBear52 wants to merge 1 commit intomasterfrom
GetFetchFromInvoroProps
Open

FetchAPI and Comparer#59
YogiBear52 wants to merge 1 commit intomasterfrom
GetFetchFromInvoroProps

Conversation

@YogiBear52
Copy link
Copy Markdown
Owner

Invoro now can get Fetch Interceptor , FeaturesComparer and categories comparer

@YogiBear52 YogiBear52 requested a review from levinlev August 8, 2019 11:51
})
describe('with costume comparer', () => {
let costumeFeaturesComparerReverse = (a: Feature, b: Feature): number => { return a.name.localeCompare(b.name) * (-1)};
let expectedIdOrder: string[] = ["ID1", "ID2", "ID3"];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The order shoul be the opposite, since you use the custome (reverse) comparer

}
}

private getFeaturesCategoryComparerFunc(): (a: FeaturesCategory, b: FeaturesCategory) => number {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

return this.props.featuresCategoryCompareFn ? this.props.featuresCategoryCompareFn : FeaturesCategory.Compare;
}

private getFeaturesComparerFunc(): (a: Feature, b: Feature) => number {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

2 participants