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

farjs / farjs-filelist / 13206417300

07 Feb 2025 07:06PM UTC coverage: 99.947% (-0.05%) from 100.0%
13206417300

push

github

viktor-podzigun
Added FileListPanelController component

559 of 560 branches covered (99.82%)

Branch coverage included in aggregate %.

35 of 36 new or added lines in 1 file covered. (97.22%)

3241 of 3242 relevant lines covered (99.97%)

10.81 hits per line

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

95.0
/src/FileListPanelController.mjs
1
/**
1✔
2
 * @typedef {import("./FileListPanel.mjs").FileListPanelProps} FileListPanelProps
1✔
3
 */
1✔
4
import React from "react";
1✔
5
import WithStack from "./stack/WithStack.mjs";
1✔
6

1✔
7
const h = React.createElement;
1✔
8

1✔
9
/**
1✔
10
 * @param {React.FunctionComponent<FileListPanelProps>
1✔
11
 *  | React.ComponentClass<FileListPanelProps>
1✔
12
 * } fileListPanelComp
1✔
13
 */
1✔
14
function FileListPanelController(fileListPanelComp) {
1✔
15
  const FileListPanelControllerComp = () => {
1✔
16
    const stackProps = WithStack.useStack();
1✔
17
    const stack = stackProps.stack;
1✔
18
    const stackItem = stack.peek();
1✔
19
    const data = stackItem.getData();
1✔
20

1✔
21
    if (data) {
1✔
22
      return h(fileListPanelComp, {
1✔
23
        dispatch: data.dispatch,
1✔
24
        actions: data.actions,
1✔
25
        state: data.state,
1✔
26
      });
1✔
27
    }
1✔
NEW
28
    return null;
×
29
  };
1✔
30

1✔
31
  FileListPanelControllerComp.displayName = "FileListPanelController";
1✔
32

1✔
33
  return FileListPanelControllerComp;
1✔
34
}
1✔
35

1✔
36
export default FileListPanelController;
1✔
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