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

kommitters / editorjs-toggle-block / 10856842690

13 Sep 2024 10:17PM UTC coverage: 31.442% (-0.7%) from 32.139%
10856842690

Pull #242

github

web-flow
Merge c2da1ab21 into 152a5cd00
Pull Request #242: General decoupling in functions

77 of 370 branches covered (20.81%)

Branch coverage included in aggregate %.

95 of 477 new or added lines in 22 files covered. (19.92%)

3 existing lines in 1 file now uncovered.

250 of 670 relevant lines covered (37.31%)

29.51 hits per line

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

0.0
/src/render/renderSettings.js
1
 /**
2
   * Adds events for the move up, move down and delete options in the toolbar
3
   */
4
export function renderSettings() {
NEW
5
    const settingsBar = document.getElementsByClassName("ce-settings");
×
NEW
6
    const optionsContainer = settingsBar[0];
×
7

NEW
8
    setTimeout(() => {
×
NEW
9
      const options = optionsContainer.lastChild;
×
NEW
10
      const toggleIndex = this.api.blocks.getCurrentBlockIndex();
×
NEW
11
      this.highlightToggleItems(this.wrapper.id);
×
12

13
      const moveUpElement =
NEW
14
        options.querySelector('[data-item-name="move-up"]') ||
×
15
        options.getElementsByClassName("ce-tune-move-up")[0];
16
      const moveDownElement =
NEW
17
        options.querySelector('[data-item-name="move-down"]') ||
×
18
        options.getElementsByClassName("ce-tune-move-down")[0];
19
      const deleteElement =
NEW
20
        options.querySelector('[data-item-name="delete"]') ||
×
21
        options.getElementsByClassName("ce-settings__button--delete")[0];
22

NEW
23
      this.addEventsMoveButtons(moveDownElement, 0, toggleIndex);
×
NEW
24
      this.addEventsMoveButtons(moveUpElement, 1, toggleIndex);
×
NEW
25
      this.addEventDeleteButton(deleteElement, toggleIndex);
×
26
    });
27

NEW
28
    return document.createElement("div");
×
29
  }
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