Skip to content

Commit af9df1f

Browse files
committed
Don't actually run request() and notification()
1 parent 2026260 commit af9df1f

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/client/index.test.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,23 @@ test("should typecheck", () => {
5454
});
5555

5656
// Typecheck that only valid weather requests/notifications/results are allowed
57-
weatherClient.request(
58-
{
59-
method: "weather/get",
60-
params: {
61-
city: "Seattle",
57+
false &&
58+
weatherClient.request(
59+
{
60+
method: "weather/get",
61+
params: {
62+
city: "Seattle",
63+
},
6264
},
63-
},
64-
WeatherResultSchema,
65-
);
65+
WeatherResultSchema,
66+
);
6667

67-
weatherClient.notification({
68-
method: "weather/alert",
69-
params: {
70-
severity: "warning",
71-
message: "Storm approaching",
72-
},
73-
});
68+
false &&
69+
weatherClient.notification({
70+
method: "weather/alert",
71+
params: {
72+
severity: "warning",
73+
message: "Storm approaching",
74+
},
75+
});
7476
});

0 commit comments

Comments
 (0)