test: add validation test for folder/workspace mutual exclusion
This commit is contained in:
parent
4d4584624e
commit
2da86abcb9
@ -38,5 +38,17 @@ describe("vscode-web", async () => {
|
||||
expect(t).toThrow("Offline mode does not allow extensions to be installed");
|
||||
});
|
||||
|
||||
it("folder and workspace can not be used together", () => {
|
||||
const t = async () => {
|
||||
await runTerraformApply(import.meta.dir, {
|
||||
agent_id: "foo",
|
||||
accept_license: "true",
|
||||
folder: "/home/coder",
|
||||
workspace: "/home/coder/project.code-workspace",
|
||||
});
|
||||
};
|
||||
expect(t).toThrow("Cannot specify both 'folder' and 'workspace'. Please use only one.");
|
||||
});
|
||||
|
||||
// More tests depend on shebang refactors
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user