File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -54,21 +54,23 @@ test("should typecheck", () => {
54
54
} ) ;
55
55
56
56
// 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
+ } ,
62
64
} ,
63
- } ,
64
- WeatherResultSchema ,
65
- ) ;
65
+ WeatherResultSchema ,
66
+ ) ;
66
67
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
+ } ) ;
74
76
} ) ;
You can’t perform that action at this time.
0 commit comments