Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Feb 14, 2024
1 parent bf67706 commit c2b7566
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions components/src/components/atoms/ScrollBox/ScrollBox.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ const mockIntersectionObserver = makeMockIntersectionObserver(
)

const expectLine = (e: 'top' | 'bottom', visible: boolean) =>
expect(screen.getByTestId('scroll-box')).toHaveStyleRule(
'background-color',
`hsla(0 0% 91% / ${visible ? '1' : '0'})`,
{
modifier: e === 'top' ? '::before' : '::after',
},
expect(screen.getByTestId('scroll-box')).toHaveAttribute(
`data-${e}-line`,
visible ? 'true' : 'false',
)

describe('<ScrollBox />', () => {
Expand Down

0 comments on commit c2b7566

Please sign in to comment.