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

fkhadra / react-toastify / 12246748306

10 Dec 2024 12:09AM UTC coverage: 81.078% (-7.9%) from 88.998%
12246748306

Pull #1178

github

fkhadra
chore: remove scss reference
Pull Request #1178: [WIP] V11

313 of 414 branches covered (75.6%)

Branch coverage included in aggregate %.

55 of 63 new or added lines in 14 files covered. (87.3%)

38 existing lines in 6 files now uncovered.

424 of 495 relevant lines covered (85.66%)

563.04 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(node: HTMLElement, done: () => void, duration = Default.COLLAPSE_DURATION) {
×
UNCOV
7
  const { scrollHeight, style } = node;
×
8

UNCOV
9
  requestAnimationFrame(() => {
×
UNCOV
10
    style.minHeight = 'initial';
×
UNCOV
11
    style.height = scrollHeight + 'px';
×
UNCOV
12
    style.transition = `all ${duration}ms`;
×
13

UNCOV
14
    requestAnimationFrame(() => {
×
UNCOV
15
      style.height = '0';
×
UNCOV
16
      style.padding = '0';
×
UNCOV
17
      style.margin = '0';
×
UNCOV
18
      setTimeout(done, duration as number);
×
19
    });
20
  });
21
}
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

© 2026 Coveralls, Inc