Don't actually run request() and notification()
This commit is contained in:
parent
2026260668
commit
af9df1ff14
1 changed files with 17 additions and 15 deletions
|
|
@ -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",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue