• 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/nest/setNestedBlockAttributes.js
1
  /**
2
   * Sets the required attributes to convert an external block
3
   * of the toggle into a block inside the toggle.
4
   */
5
 export function setNestedBlockAttributes() {
NEW
6
    const blockIndex = this.api.blocks.getCurrentBlockIndex();
×
NEW
7
    const block = this.api.blocks.getBlockByIndex(blockIndex);
×
NEW
8
    const { holder } = block;
×
NEW
9
    const willBeABlock = holder.getAttribute("will-be-a-nested-block");
×
10

NEW
11
    if (willBeABlock) {
×
NEW
12
      holder.removeAttribute("will-be-a-nested-block");
×
NEW
13
      this.setAttributesToNewBlock(blockIndex);
×
NEW
14
      this.api.toolbar.close();
×
15
    }
16
  }
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