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

atinc / ngx-tethys / ba7e05e2-37c0-44c6-8725-6f617aa0d43e

pending completion
ba7e05e2-37c0-44c6-8725-6f617aa0d43e

Pull #2756

circleci

huanhuanwa
test(color-picker): add test #INFR-8673
Pull Request #2756: feat(color-picker): add popoverRef param when panel open and close #INFR-8673

187 of 6315 branches covered (2.96%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

2645 of 13660 relevant lines covered (19.36%)

83.2 hits per line

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

27.27
/src/tooltip/tooltip.service.ts
1
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
2
import { Inject, Injectable, NgZone, ElementRef } from '@angular/core';
3
import { ThyTooltipRef } from './tooltip-ref';
4
import { ThyGlobalTooltipConfig, ThyTooltipConfig, THY_TOOLTIP_DEFAULT_CONFIG_TOKEN } from './tooltip.config';
5

6
@Injectable({ providedIn: 'root' })
1✔
7
export class ThyTooltipService {
8
    constructor(
×
9
        private overlay: Overlay,
×
10
        private scrollDispatcher: ScrollDispatcher,
×
11
        private ngZone: NgZone,
×
12
        @Inject(THY_TOOLTIP_DEFAULT_CONFIG_TOKEN)
13
        private defaultTooltipConfig: ThyGlobalTooltipConfig
14
    ) {}
15

16
    /**
×
17
     * 创建一个 Tooltip
×
18
     */
×
19
    create(host: ElementRef<HTMLElement> | HTMLElement, config: ThyTooltipConfig = {}) {
×
20
        config = Object.assign({}, this.defaultTooltipConfig, config);
21
        const tooltipRef = new ThyTooltipRef(host, config, this.overlay, this.scrollDispatcher, this.ngZone);
1✔
22
        return tooltipRef;
23
    }
24
}
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