Skip to content

Commit 8fa8b8c

Browse files
committed
polish
1 parent 33b5952 commit 8fa8b8c

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

packages/graphiql/cypress/e2e/ws-sse.cy.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
describe('IncrementalDelivery support via fetcher', () => {
2+
const testSubscription = /* GraphQL */ `
3+
subscription Test {
4+
message
5+
}
6+
`;
7+
28
function assertResponse() {
39
for (const message of ['Hi', 'Bonjour', 'Hola', 'Ciao', 'Zdravo']) {
410
cy.assertQueryResult({ data: { message } });
511
}
612
}
713

814
it('should work with ws', () => {
9-
const testSubscription = /* GraphQL */ `
10-
subscription TestSubscription {
11-
message
12-
}
13-
`;
14-
1515
cy.visit(`/?query=${testSubscription}`);
1616
cy.clickExecuteQuery();
1717
assertResponse();
1818
});
1919

2020
it('should work with sse', () => {
21-
const testSubscription = /* GraphQL */ `
22-
subscription Test {
23-
message
24-
}
25-
`;
26-
2721
cy.visit(
2822
`/?sseUrl=http://localhost:8080/graphql/stream&query=${testSubscription}`,
2923
);

0 commit comments

Comments
 (0)