Skip to content

Commit c0a08c7

Browse files
committed
refactor: onOperationFn returns void
1 parent 4c91e1c commit c0a08c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/__tests__/handler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ it('should report graphql errors returned from onSubscribe', async () => {
3434
});
3535

3636
it('should respond with result returned from onSubscribe', async () => {
37-
const onOperationFn = jest.fn();
37+
const onOperationFn = jest.fn(() => {
38+
// noop
39+
});
3840
const server = startTServer({
3941
onSubscribe: () => {
4042
return { data: { __typename: 'Query' } };

0 commit comments

Comments
 (0)