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

ckeditor / ckeditor5-inspector / 4e8ab897-03a3-4290-a64f-2b7935e4be58

03 Oct 2024 05:19AM UTC coverage: 95.42%. Remained the same
4e8ab897-03a3-4290-a64f-2b7935e4be58

Pull #189

circleci

psmyrek
Bumped `ckeditor5-dev-*` to latest stable version.
Pull Request #189: Aligned to `ckeditor5-dev` ESM changes

522 of 560 branches covered (93.21%)

Branch coverage included in aggregate %.

1124 of 1165 relevant lines covered (96.48%)

113.15 hits per line

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

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

6
import React from 'react';
7

8
import TreeElement from './treeelement';
9
import TreeTextNode from './treetextnode';
10
import TreeComment from './treecomment';
11

12
export function renderTreeNodeFromDefinition( definition, index, globalTreeProps ) {
13
        if ( definition.type === 'element' ) {
186✔
14
                return <TreeElement key={index} definition={definition} globalTreeProps={globalTreeProps} />;
165✔
15
        } else if ( definition.type === 'text' ) {
21✔
16
                return <TreeTextNode key={index} definition={definition} globalTreeProps={globalTreeProps} />;
17✔
17
        } else if ( definition.type === 'comment' ) {
4!
18
                return <TreeComment key={index} definition={definition} />;
4✔
19
        }
20
}
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