Skip to content

Commit

Permalink
test(): update schematic option unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jun 24, 2022
1 parent 099d8de commit 6cf2df9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/lib/schematics/schematic.option.spec.ts
Expand Up @@ -116,16 +116,8 @@ describe('Schematic Option', () => {
});
});

it('should should manage boolean option', () => {
it('should manage boolean option', () => {
const option = new SchematicOption('dry-run', false);
expect(option.toCommandString()).toEqual('--no-dry-run');
});

it('should keep input name boolean option', () => {
const keepNameOption = new SchematicOption('noDryRunABcdEfg', true, true);
expect(keepNameOption.toCommandString()).toEqual('--noDryRunABcdEfg');

const disableKeepNameOption = new SchematicOption('dry-run', true, false);
expect(disableKeepNameOption.toCommandString()).toEqual('--dry-run');
});
});

0 comments on commit 6cf2df9

Please sign in to comment.