Skip to content

Commit 8175471

Browse files
committed
fix lint
1 parent 2b175f5 commit 8175471

File tree

1 file changed

+5
-3
lines changed
  • packages/graphiql-toolkit/src/create-fetcher/__tests__

1 file changed

+5
-3
lines changed

packages/graphiql-toolkit/src/create-fetcher/__tests__/lib.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,17 @@ describe('getWsFetcher', () => {
9090
});
9191
});
9292

93-
describe('missing graphql-ws dependency', () => {
94-
it('should throw a nice error', () => {
93+
describe('missing `graphql-ws` dependency', () => {
94+
it('should throw a nice error', async () => {
9595
jest.resetModules();
9696
jest.doMock('graphql-ws', () => {
9797
// eslint-disable-next-line no-throw-literal
9898
throw { code: 'MODULE_NOT_FOUND' };
9999
});
100100

101-
expect(createWebsocketsFetcherFromUrl('wss://example.com')).rejects.toThrow(
101+
await expect(
102+
createWebsocketsFetcherFromUrl('wss://example.com'),
103+
).rejects.toThrow(
102104
/You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'/,
103105
);
104106
});

0 commit comments

Comments
 (0)