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

naver / egjs-flicking / 5151770229

pending completion
5151770229

push

github

web-flow
fix: add cjs file (#806)

4490 of 7247 branches covered (61.96%)

Branch coverage included in aggregate %.

6 of 10 new or added lines in 1 file covered. (60.0%)

8212 of 8779 relevant lines covered (93.54%)

139.01 hits per line

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

52.63
/packages/react-flicking/src/react-flicking/NonStrictPanel.tsx
1
/*
2
 * Copyright (c) 2015 NAVER Corp.
3
 * egjs projects are licensed under the MIT license
4
 */
5
import * as React from "react";
5✔
6
import { findDOMNode } from "react-dom";
5✔
7

8
class NonStrictPanel extends React.Component<{ children?: React.ReactElement }> {
5!
9
  private _hide: boolean = false;
×
10

11
  public get nativeElement() { return findDOMNode(this) as HTMLElement; }
5✔
12
  public get rendered() { return !this._hide; }
5✔
13

14
  public render() {
5✔
15
    return this._hide
×
16
      ? <></>
17
      : this.props.children;
18
  }
19

20
  public show() {
5✔
21
    this._hide = false;
×
22
  }
23

24
  public hide() {
5✔
25
    this._hide = true;
×
26
  }
27
}
5✔
28

29
export default NonStrictPanel;
5✔
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