Skip to content

Commit 85638b1

Browse files
committed
Make tests pass with graphql@16 too
1 parent 79f56a6 commit 85638b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/integration-tests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('PubSubAsyncIterator', function() {
8080
});
8181

8282
it('should allow subscriptions', () =>
83-
subscribe(schema, query)
83+
subscribe({ schema, document: query})
8484
.then(ai => {
8585
// tslint:disable-next-line:no-unused-expression
8686
expect(isAsyncIterable(ai)).to.be.true;
@@ -95,7 +95,7 @@ describe('PubSubAsyncIterator', function() {
9595
}));
9696

9797
it('should allow pattern subscriptions', () =>
98-
subscribe(schema, patternQuery)
98+
subscribe({ schema, document: patternQuery })
9999
.then(ai => {
100100
// tslint:disable-next-line:no-unused-expression
101101
expect(isAsyncIterable(ai)).to.be.true;
@@ -110,7 +110,7 @@ describe('PubSubAsyncIterator', function() {
110110
}));
111111

112112
it('should clear event handlers', () =>
113-
subscribe(schema, query)
113+
subscribe({ schema, document: query})
114114
.then(ai => {
115115
// tslint:disable-next-line:no-unused-expression
116116
expect(isAsyncIterable(ai)).to.be.true;

0 commit comments

Comments
 (0)