Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
fix: Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Jul 2, 2019
1 parent 617dba7 commit be02d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/offix-client/test/mock/TestUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApolloLink, Observable, Operation } from "apollo-link";
import { ApolloLink, Observable, Operation, FetchResult } from "apollo-link";
import { ExecutionResult } from "graphql";

export class TestLink extends ApolloLink {
Expand All @@ -10,7 +10,7 @@ export class TestLink extends ApolloLink {

public request(operation: Operation) {
this.operations.push(operation);
return new Observable(observer => {
return new Observable<FetchResult>(observer => {
if (operation.getContext().testError) {
setTimeout(() => observer.error(operation.getContext().testError), 0);
return;
Expand Down

0 comments on commit be02d84

Please sign in to comment.