Cover whitespace-only launchCwd startup rejection
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
1acc3a5141
commit
198621a881
1 file changed
+9
@@ -275,6 +275,15 @@ describe("runtimeApiServer", () => {
|
||||
).rejects.toThrow("Invalid launchCwd must be a non-empty path");
|
||||
});
|
||||
|
||||
it("rejects startup when launchCwd is only whitespace", async () => {
|
||||
await expect(
|
||||
startRuntimeApiServer({
|
||||
port: 0,
|
||||
launchCwd: " ",
|
||||
}),
|
||||
).rejects.toThrow("Invalid launchCwd must be a non-empty path");
|
||||
});
|
||||
|
||||
it("rejects startup when launchCwd is not a string", async () => {
|
||||
await expect(
|
||||
startRuntimeApiServer({
|
||||
|
||||
Reference in new issue
Block a user