Fix e2e tests

- As one command name was changed
This commit is contained in:
Janne Valkealahti
2023-01-16 21:12:17 +00:00
parent 6e1ca089d7
commit 90010a94ea

View File

@@ -12,7 +12,7 @@ import {
testTimeout
} from '../src/utils';
describe('e2e commands boolean-arity1-default-true', () => {
describe('e2e commands arity-boolean-default-true', () => {
let cli: Cli;
let command: string;
let options: string[] = [];
@@ -21,7 +21,7 @@ describe('e2e commands boolean-arity1-default-true', () => {
* testBooleanArity1DefaultTrue
*/
const annoDefaultWithoutOverwriteReturnsTrueDesc = 'default without overwrite returns true (anno)';
const annoDefaultWithoutOverwriteCommand = ['e2e', 'anno', 'boolean-arity1-default-true'];
const annoDefaultWithoutOverwriteCommand = ['e2e', 'anno', 'arity-boolean-default-true'];
const annoDefaultWithoutOverwriteReturnsTrue = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {
@@ -35,7 +35,7 @@ describe('e2e commands boolean-arity1-default-true', () => {
* testBooleanArity1DefaultTrueRegistration
*/
const regDefaultWithoutOverwriteReturnsTrueDesc = 'default without overwrite returns true (reg)';
const regDefaultWithoutOverwriteCommand = ['e2e', 'reg', 'boolean-arity1-default-true'];
const regDefaultWithoutOverwriteCommand = ['e2e', 'reg', 'arity-boolean-default-true'];
const regOptionalWithoutOverwriteReturnsTrue = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {
@@ -49,7 +49,7 @@ describe('e2e commands boolean-arity1-default-true', () => {
* testBooleanArity1DefaultTrue
*/
const annoDefaultWithOverwriteFalseReturnsFalseDesc = 'default with overwrite false returns false (anno)';
const annoDefaultWithOverwriteFalseCommand = ['e2e', 'anno', 'boolean-arity1-default-true', '--overwrite', 'false'];
const annoDefaultWithOverwriteFalseCommand = ['e2e', 'anno', 'arity-boolean-default-true', '--overwrite', 'false'];
const annoDefaultWithOverwriteFalseReturnsFalse = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {
@@ -63,7 +63,7 @@ describe('e2e commands boolean-arity1-default-true', () => {
* testBooleanArity1DefaultTrueRegistration
*/
const regDefaultWithOverwriteFalseReturnsFalseDesc = 'default with overwrite false returns false (reg)';
const regDefaultWithOverwriteFalseCommand = ['e2e', 'reg', 'boolean-arity1-default-true', '--overwrite', 'false'];
const regDefaultWithOverwriteFalseCommand = ['e2e', 'reg', 'arity-boolean-default-true', '--overwrite', 'false'];
const regOptionalWithOverwriteFalseReturnsFalse = async (cli: Cli) => {
cli.run();
await waitForExpect(async () => {