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

ckeditor / ckeditor5-inspector / 549

pending completion
549

push

travis-ci-com

web-flow
Bump webpack from 5.75.0 to 5.76.0

Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

521 of 560 branches covered (93.04%)

Branch coverage included in aggregate %.

1123 of 1165 relevant lines covered (96.39%)

113.25 hits per line

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

90.91
/src/components/tree/treenode.js
1
/**
2
 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
 * For licensing, see LICENSE.md.
4
 */
5

6
import { Component } from 'react';
7
import { renderTreeNodeFromDefinition } from './utils';
8
import isEqual from 'lodash.isequal';
9

10
/**
11
 * A base class for nodes in the tree.
12
 */
13
export default class TreeNode extends Component {
14
        constructor( props ) {
15
                super( props );
133✔
16

17
                this.handleClick = this.handleClick.bind( this );
133✔
18
        }
19

20
        handleClick( evt ) {
21
                this.globalTreeProps.onClick( evt, this.definition.node );
6✔
22
        }
23

24
        getChildren() {
25
                return this.definition.children.map( ( childDefinition, index ) => {
121✔
26
                        return renderTreeNodeFromDefinition( childDefinition, index, this.props.globalTreeProps );
21✔
27
                } );
28
        }
29

30
        get definition() {
31
                return this.props.definition;
592✔
32
        }
33

34
        get globalTreeProps() {
35
                return this.props.globalTreeProps || {};
356✔
36
        }
37

38
        get isActive() {
39
                return this.definition.node === this.globalTreeProps.activeNode;
148✔
40
        }
41

42
        shouldComponentUpdate( nextProps ) {
43
                return !isEqual( this.props, nextProps );
×
44
        }
45
}
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