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

worktile / slate-angular / 543eb906-9e4d-47ae-b0a3-bf4f680c78ba

pending completion
543eb906-9e4d-47ae-b0a3-bf4f680c78ba

push

circleci

Maple13
build: optimizing angular 15 upgrade

267 of 876 branches covered (30.48%)

Branch coverage included in aggregate %.

682 of 1485 relevant lines covered (45.93%)

30.73 hits per line

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

22.22
/packages/src/utils/block-card.ts
1
import { DOMNode, DOMSelection } from "./dom";
2

3
export const FAKE_LEFT_BLOCK_CARD_OFFSET = -1;
1✔
4

5
export const FAKE_RIGHT_BLOCK_CARD_OFFSET = -2;
1✔
6

7
export function hasBlockCardWithNode(node: DOMNode) {
8
    return node && (node.parentElement.hasAttribute('card-target') || (node instanceof HTMLElement && node.hasAttribute('card-target')));
×
9
}
10

11
export function hasBlockCard(selection: DOMSelection) {
12
    return hasBlockCardWithNode(selection?.anchorNode) || hasBlockCardWithNode(selection?.focusNode);
×
13
}
14

15
export function getCardTargetAttribute(node: DOMNode) {
16
    return node.parentElement.attributes['card-target'] || (node instanceof HTMLElement && node.attributes['card-target']);
2✔
17
}
18

19
export function isCardLeft(node: DOMNode) {
20
    const cardTarget = getCardTargetAttribute(node);
×
21
    return cardTarget && cardTarget.nodeValue === 'card-left';
×
22
}
23

24
export function isCardLeftByTargetAttr(targetAttr: any) {
25
    return targetAttr && targetAttr.nodeValue === 'card-left';
×
26
}
27

28
export function isCardRightByTargetAttr(targetAttr: any) {
29
    return targetAttr && targetAttr.nodeValue === 'card-right';
×
30
}
31

32
export function isCardCenterByTargetAttr(targetAttr: any) {
33
    return targetAttr && targetAttr.nodeValue === 'card-center';
×
34
}
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