()
| 178 | |
| 179 | it('should handle multiple subscriptions (hot)', done => { |
| 180 | async function setup() { |
| 181 | const ITEMS = 4; |
| 182 | const { stocks } = await collectionHarness(afs, ITEMS); |
| 183 | const changes$ = TestBed.runInInjectionContext(() => stocks.snapshotChanges()); |
| 184 | const sub = changes$.subscribe(() => undefined); |
| 185 | sub.add( |
| 186 | changes$.pipe(take(1)).subscribe(data => { |
| 187 | expect(data.length).toEqual(ITEMS); |
| 188 | sub.unsubscribe(); |
| 189 | done(); |
| 190 | }) |
| 191 | ); |
| 192 | } |
| 193 | setup() |
| 194 | }); |
| 195 |
no test coverage detected