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

kommitters / editorjs-toggle-block / 10905088009

17 Sep 2024 02:24PM UTC coverage: 30.939% (-1.2%) from 32.139%
10905088009

push

github

web-flow
Merge pull request #246 from kommitters/v0.3

Release v0.3.17

73 of 367 branches covered (19.89%)

Branch coverage included in aggregate %.

77 of 456 new or added lines in 24 files covered. (16.89%)

4 existing lines in 1 file now uncovered.

250 of 677 relevant lines covered (36.93%)

29.21 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 default 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

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

NEW
20
    this.addEventsMoveButtons(moveDownElement, 0, toggleIndex);
×
NEW
21
    this.addEventsMoveButtons(moveUpElement, 1, toggleIndex);
×
NEW
22
    this.addEventDeleteButton(deleteElement, toggleIndex);
×
23
  });
24

NEW
25
  return document.createElement('div');
×
26
}
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