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

@@ -22,7 +22,7 @@ describe('e2e commands optional-value', () => {
* testOptionalValue
*/
const annoOptionalWithoutArgReturnsNullDesc = 'optional without arg returns null (anno)';
const annoOptionalWithoutArgCommand = ['e2e anno optional-value'];
const annoOptionalWithoutArgCommand = ['e2e', 'anno', 'optional-value'];
const annoOptionalWithoutArgReturnsNull = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {
@@ -36,7 +36,7 @@ describe('e2e commands optional-value', () => {
* testOptionalValueRegistration
*/
const regOptionalWithoutArgReturnsNullDesc = 'optional without arg returns null (reg)';
const regOptionalWithoutArgCommand = ['e2e reg optional-value'];
const regOptionalWithoutArgCommand = ['e2e', 'reg', 'optional-value'];
const regOptionalWithoutArgReturnsNull = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {
@@ -50,7 +50,7 @@ describe('e2e commands optional-value', () => {
* testOptionalValue
*/
const annoOptionalWithArgReturnsNullDesc = 'optional with arg returns hi (anno)';
const annoOptionalWithArgCommand = ['e2e anno optional-value --arg1 hi'];
const annoOptionalWithArgCommand = ['e2e', 'anno', 'optional-value', '--arg1', 'hi'];
const annoOptionalWithArgReturnsNull = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {
@@ -64,7 +64,7 @@ describe('e2e commands optional-value', () => {
* testOptionalValueRegistration
*/
const regOptionalWithArgReturnsHiDesc = 'optional with arg returns hi (reg)';
const regOptionalWithArgCommand = ['e2e reg optional-value --arg1 hi'];
const regOptionalWithArgCommand = ['e2e', 'reg', 'optional-value', '--arg1', 'hi'];
const regOptionalWithArgReturnsHi = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {