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

kommitters / editorjs-toggle-block / 10892436159

16 Sep 2024 09:37PM UTC coverage: 30.939% (-1.2%) from 32.139%
10892436159

Pull #243

github

web-flow
Merge 1c88c2761 into 152a5cd00
Pull Request #243: General decoupling in functions

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/blocks/save.js
1
/**
2
   * Extracts Tool's data from the view
3
   * @param {HTMLDivElement} blockContent - Toggle tools rendered view
4
   * @returns {ToggleBlockData} - saved data
5
   */
6
export default function save(blockContent) {
NEW
7
  const id = blockContent.getAttribute('id');
×
NEW
8
  const { children } = blockContent;
×
NEW
9
  const caption = children[1].innerHTML;
×
NEW
10
  const blocks = document.querySelectorAll(`div[foreignKey="${id}"]`);
×
NEW
11
  this.data.fk = id;
×
12

NEW
13
  return Object.assign(this.data, {
×
14
    text: caption,
15
    items: blocks.length,
16
  });
17
}
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

© 2026 Coveralls, Inc