From af9df1ff1494dcf3cae3d505682ff9dc53c99d27 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Mon, 4 Nov 2024 21:13:00 +0000 Subject: [PATCH] Don't actually run request() and notification() --- src/client/index.test.ts | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/client/index.test.ts b/src/client/index.test.ts index 1dc5ead..58d7a22 100644 --- a/src/client/index.test.ts +++ b/src/client/index.test.ts @@ -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", + }, + }); });