Skip to content

Commit e41b33e

Browse files
committed
test(doctor): validate emitted proxy diagnostic type
1 parent 432187f commit e41b33e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/commands/doctor-web-fetch-proxy.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ async function collectDiagnostic(
1818
await noteWebFetchProxyDiagnostic({
1919
...params,
2020
noteFn: (message) => {
21+
if (typeof message !== "string") {
22+
throw new TypeError("expected doctor proxy diagnostic to be a string");
23+
}
2124
diagnostic = message;
2225
},
2326
});

0 commit comments

Comments
 (0)