Fix e2e tests

- Due to changes in #567 e2e tests started to fail as
  args where passed with spaces instead of args array.
- Fix all args use so that spawn underneath uses
  plain array with proper args.
This commit is contained in:
Janne Valkealahti
2022-11-25 09:03:20 +00:00
parent a6b84372b2
commit a900fa4977
6 changed files with 28 additions and 28 deletions

View File

@@ -18,7 +18,7 @@ describe('e2e commands required-value', () => {
let options: string[] = [];
const annoRequiredWithoutArgReturnsErrorDesc = 'required without arg returns error (anno)';
const annoRequiredWithoutArgCommand = ['e2e anno required-value'];
const annoRequiredWithoutArgCommand = ['e2e', 'anno', 'required-value'];
const annoRequiredWithoutArgReturnsError = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {
@@ -29,7 +29,7 @@ describe('e2e commands required-value', () => {
};
const regRequiredWithoutArgReturnsErrorDesc = 'required without arg returns error (reg)';
const regRequiredWithoutArgCommand = ['e2e reg required-value'];
const regRequiredWithoutArgCommand = ['e2e', 'reg', 'required-value'];
const regRequiredWithoutArgReturnsError = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {