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

atinc / ngx-tethys / d9ae709b-3c27-4b69-b125-b8b80b54f90b

pending completion
d9ae709b-3c27-4b69-b125-b8b80b54f90b

Pull #2757

circleci

mengshuicmq
fix: fix code review
Pull Request #2757: feat(color-picker): color-picker support disabled (#INFR-8645)

98 of 6315 branches covered (1.55%)

Branch coverage included in aggregate %.

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

2392 of 13661 relevant lines covered (17.51%)

83.12 hits per line

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

12.5
/src/core/behaviors/unsubscribe.ts
1
import { Subject } from 'rxjs';
2
import { OnDestroy } from '@angular/core';
3
import { Constructor } from './constructor';
4

21✔
5
export interface ThyUnsubscribe extends OnDestroy {
6
    ngUnsubscribe$: Subject<void>;
×
7
}
×
8

9
/** Mixin to augment a directive with a `disableRipple` property. */
10
export function mixinUnsubscribe<T extends Constructor<{}>>(base: T): Constructor<ThyUnsubscribe> & T {
×
11
    return class Mixin extends base {
×
12
        ngUnsubscribe$ = new Subject<void>();
×
13

14
        constructor(...args: any[]) {
15
            super(...args);
×
16
        }
×
17

18
        ngUnsubscribeReinitialize() {
19
            this.ngUnsubscribe$.next();
20
            this.ngUnsubscribe$.complete();
21
            this.ngUnsubscribe$ = new Subject();
22
        }
23

24
        ngOnDestroy() {
25
            this.ngUnsubscribe$.next();
26
            this.ngUnsubscribe$.complete();
27
        }
28
    };
29
}
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