Skip to content

Commit

Permalink
removing redundant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beluamat29 committed Dec 7, 2024
1 parent 3df7af5 commit 5d8f814
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions tests/configuration/parameters_parser_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,6 @@ suite('Parameters parser', () => {
assert.areEqual(configuration, { randomOrder: true });
});

test('returns configuration with english language enabled if passing \'-l en\' en option', () => {
const configuration = ParametersParser.generateRunConfigurationFromParams(['-l en']);
assert.areEqual(configuration, { language: 'en' });
});

test('returns configuration with english language enabled if passing \'-language en\' en option', () => {
const configuration = ParametersParser.generateRunConfigurationFromParams(['--language en']);
assert.areEqual(configuration, { language: 'en' });
});

test('returns configuration with spanish language enabled if passing \'-l es\' en option', () => {
const configuration = ParametersParser.generateRunConfigurationFromParams(['-l es']);
assert.areEqual(configuration, { language: 'es' });
});

test('returns configuration with english language enabled if passing \'-language es\' en option', () => {
const configuration = ParametersParser.generateRunConfigurationFromParams(['--language es']);
assert.areEqual(configuration, { language: 'es' });
});

test('returns configuration with italian language enabled if passing \'-l it\' en option', () => {
const configuration = ParametersParser.generateRunConfigurationFromParams(['-l it']);
assert.areEqual(configuration, { language: 'it' });
Expand All @@ -58,14 +38,6 @@ suite('Parameters parser', () => {
assert.areEqual(configuration, { language: 'it' });
});

test('returns configuration with fail fast and randomize modes enabled no matter the order the params are sent', () => {
const configuration1 = ParametersParser.generateRunConfigurationFromParams(['-f', '-r']);
const configuration2 = ParametersParser.generateRunConfigurationFromParams(['-r', '-f']);

assert.areEqual(configuration1, { failFast: true, randomOrder: true });
assert.areEqual(configuration2, { failFast: true, randomOrder: true });
});

test('returns configuration with fail fast, randomize and english language enabled no matter the order the params are sent', () => {
const configuration1 = ParametersParser.generateRunConfigurationFromParams(['-f', '-r', '-l en']);
const configuration2 = ParametersParser.generateRunConfigurationFromParams(['-f', '-l en', '-r']);
Expand All @@ -76,16 +48,6 @@ suite('Parameters parser', () => {
assert.areEqual(configuration3, { failFast: true, randomOrder: true, language: 'en' });
});

test('returns configuration with fail fast, randomize and english language enabled when using long commands versions no matter the order the params are sent', () => {
const configuration1 = ParametersParser.generateRunConfigurationFromParams(['--fail-fast', '--randomize', '--language en']);
const configuration2 = ParametersParser.generateRunConfigurationFromParams(['--fail-fast', '--language en', '--randomize']);
const configuration3 = ParametersParser.generateRunConfigurationFromParams(['--language en', '--fail-fast', '--randomize']);

assert.areEqual(configuration1, { failFast: true, randomOrder: true, language: 'en' });
assert.areEqual(configuration2, { failFast: true, randomOrder: true, language: 'en' });
assert.areEqual(configuration3, { failFast: true, randomOrder: true, language: 'en' });
});

test('returns configuration with fail fast, randomize and english language enabled when mixing long and short commands no matter the order the params are sent', () => {
const configuration1 = ParametersParser.generateRunConfigurationFromParams(['-f', '--randomize', '-l en']);
const configuration2 = ParametersParser.generateRunConfigurationFromParams(['--fail-fast', '-l en', '-r']);
Expand Down

0 comments on commit 5d8f814

Please sign in to comment.