diff --git a/src/Angular2Apollo.ts b/src/Angular2Apollo.ts index 82f5062d2..d8e7de790 100644 --- a/src/Angular2Apollo.ts +++ b/src/Angular2Apollo.ts @@ -31,11 +31,6 @@ export class Angular2Apollo { } public subscribe(options: SubscriptionOptions): Observable { - // XXX Try to remove it soon - if (typeof this.client.subscribe === 'undefined') { - throw new Error(`Your version of ApolloClient doesn't support subscriptions`); - } - return from(this.client.subscribe(options)); } diff --git a/tests/Angular2Apollo.spec.ts b/tests/Angular2Apollo.spec.ts index b7cde3684..9f477d7ff 100644 --- a/tests/Angular2Apollo.spec.ts +++ b/tests/Angular2Apollo.spec.ts @@ -220,14 +220,6 @@ describe('angular2Apollo', () => { }); describe('subscribe', () => { - it('should throw an error if method is missing', () => { - client.subscribe = undefined; - - expect(() => { - angular2Apollo.subscribe({}); - }).toThrowError('subscriptions'); - }); - it('should be called with the same options and return Observable', (done: jest.DoneCallback) => { const options = {query: '', variables: {}};