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

henryruhs / rxjs-collection / 4122723945

pending completion
4122723945

push

github

henryruhs
Remove conditions from tests

23 of 25 branches covered (92.0%)

Branch coverage included in aggregate %.

179 of 194 relevant lines covered (92.27%)

3.73 hits per line

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

92.31
/src/reactive-array.class.ts
1
import { Observable, Subject, Subscription, debounceTime } from 'rxjs';
1✔
2
import { reactive } from './reactive.helper';
1✔
3
import { ReactiveCollection } from './reactive.interface';
1✔
4

1✔
5
export class ReactiveArray<Type> extends Array<Type> implements ReactiveCollection<Array<Type>>
15✔
6
{
15✔
7
        protected store : Subject<Array<Type>> = new Subject<Array<Type>>();
15✔
8

15✔
9
        asObservable() : Observable<Array<Type>>
15✔
10
        {
13✔
11
                return this.store.asObservable().pipe(debounceTime(0));
13✔
12
        }
13✔
13

15✔
14
        subscribe(next : (value : Array<Type>) => void) : Subscription
15✔
15
        {
×
16
                return this.store.pipe(debounceTime(0)).subscribe(next);
×
17
        }
×
18

15✔
19
        unsubscribe() : void
15✔
20
        {
1✔
21
                this.store.complete();
1✔
22
        }
1✔
23
}
15✔
24

1✔
25
reactive(ReactiveArray, Array,
1✔
26
[
1✔
27
        'copyWithin',
1✔
28
        'fill',
1✔
29
        'pop',
1✔
30
        'push',
1✔
31
        'reverse',
1✔
32
        'shift',
1✔
33
        'sort',
1✔
34
        'splice',
1✔
35
        'unshift'
1✔
36
]);
1✔
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