Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: plouc/nivo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e9a0a0a0ce4f1a6aab076bb8cb496922d2654f46
Choose a base ref
..
head repository: plouc/nivo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 77abcc642470a7cd4653c26edeac7b933004eec4
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/bump/tests/Bump.test.tsx
4 changes: 2 additions & 2 deletions packages/bump/tests/Bump.test.tsx
Original file line number Diff line number Diff line change
@@ -94,13 +94,13 @@ it('should render a basic bump chart', () => {

const seriesLine = (seriesId: string) => (node: ReactTestInstance) => {
if (node.type !== 'path') return false
if (!node.props.hasOwnProperty('data-testid')) return false
if (!('data-testid' in node.props)) return false
return (node.props['data-testid'] as string) === `line.${seriesId}`
}

const seriesCircles = (seriesId: string) => (node: ReactTestInstance) => {
if (node.type !== 'circle') return false
if (!node.props.hasOwnProperty('data-testid')) return false
if (!('data-testid' in node.props)) return false
return (node.props['data-testid'] as string).startsWith(`point.${seriesId}.`)
}