• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fkhadra / react-toastify / 12001201729

25 Nov 2024 12:54AM UTC coverage: 42.537% (-46.5%) from 88.998%
12001201729

Pull #1178

github

fkhadra
bump coverall action
Pull Request #1178: [WIP] V11

141 of 375 branches covered (37.6%)

Branch coverage included in aggregate %.

3 of 5 new or added lines in 3 files covered. (60.0%)

214 existing lines in 9 files now uncovered.

201 of 429 relevant lines covered (46.85%)

176.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/utils/collapseToast.ts
1
import { Default } from './constant';
2

3
/**
4
 * Used to collapse toast after exit animation
5
 */
6
export function collapseToast(
7
  node: HTMLElement,
8
  done: () => void,
9
  duration = Default.COLLAPSE_DURATION
×
10
) {
UNCOV
11
  const { scrollHeight, style } = node;
×
12

UNCOV
13
  requestAnimationFrame(() => {
×
UNCOV
14
    style.minHeight = 'initial';
×
UNCOV
15
    style.height = scrollHeight + 'px';
×
UNCOV
16
    style.transition = `all ${duration}ms`;
×
17

UNCOV
18
    requestAnimationFrame(() => {
×
UNCOV
19
      style.height = '0';
×
UNCOV
20
      style.padding = '0';
×
UNCOV
21
      style.margin = '0';
×
UNCOV
22
      setTimeout(done, duration as number);
×
23
    });
24
  });
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc