Skip to content

Commit

Permalink
fix type check error
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Nov 13, 2019
1 parent 76e15a0 commit 8c39a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/newsfeed/public/lib/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { take, tap, toArray } from 'rxjs/operators';
import { mapTo, take, tap, toArray } from 'rxjs/operators';
import { interval, race } from 'rxjs';
import sinon, { stub } from 'sinon';
import moment from 'moment';
Expand Down Expand Up @@ -683,7 +683,7 @@ describe('getApi', () => {
configMock.newsfeed.mainInterval = 10; // fast retry for testing
mockHttpGet.mockImplementation(getHttpMockWithItems(successItems));

const timeout$ = interval(1000); // lets us capture some results after a short time
const timeout$ = interval(1000).pipe(mapTo(undefined)); // lets us capture some results after a short time
let timesFetched = 0;

const get$ = getApi(httpMock, configMock.newsfeed, '6.8.2').pipe(
Expand Down

0 comments on commit 8c39a54

Please sign in to comment.