Don't actually run request() and notification()

This commit is contained in:
Justin Spahr-Summers 2024-11-04 21:13:00 +00:00
commit af9df1ff14
No known key found for this signature in database

View file

@ -54,21 +54,23 @@ test("should typecheck", () => {
});
// Typecheck that only valid weather requests/notifications/results are allowed
weatherClient.request(
{
method: "weather/get",
params: {
city: "Seattle",
false &&
weatherClient.request(
{
method: "weather/get",
params: {
city: "Seattle",
},
},
},
WeatherResultSchema,
);
WeatherResultSchema,
);
weatherClient.notification({
method: "weather/alert",
params: {
severity: "warning",
message: "Storm approaching",
},
});
false &&
weatherClient.notification({
method: "weather/alert",
params: {
severity: "warning",
message: "Storm approaching",
},
});
});