Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("does not emit scroll tracking events for author profile content when nothing changed", () => {
const reporter = jest.fn();
const results = pagedResult(0, 3);
const authorProfileContent = shallow(
{}}
onArticlePress={() => {}}
/>,
{
context: {
tracking: {
analytics: reporter
}
}
}
);
authorProfileContent
it("emits scroll tracking events for author profile content", () => {
const reporter = jest.fn();
const results = pagedResult(0, 3);
const authorProfileContent = shallow(
{}}
onArticlePress={() => {}}
/>,
{
context: {
tracking: {
analytics: reporter
}
}
}
);
authorProfileContent