Skip to content

Commit

Permalink
chore: remove code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
elaichenkov committed Jan 11, 2024
1 parent 18744d5 commit af5c46a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ const assetsDir = path.join(__dirname, '..', 'assets');
type CliArgumentKey = 'browser'
| 'no-browsers'
| 'next'
| 'next'
| 'beta'
| 'ct'
| 'quiet'
| 'quiet'
| 'gha'
| 'install-deps'
| 'lang';
Expand All @@ -63,7 +61,7 @@ export class Generator {
this._patchGitIgnore();
await this._patchPackageJSON(answers);
if (answers.framework)
this._printEpilogueCT(answers);
this._printEpilogueCT();
else
this._printEpilogue(answers);
}
Expand Down Expand Up @@ -320,7 +318,7 @@ Visit https://playwright.dev/docs/intro for more information. ✨
Happy hacking! 🎭`);
}

private _printEpilogueCT(answers: PromptOptions) {
private _printEpilogueCT() {
console.log(colors.green('✔ Success!') + ' ' + colors.bold(`Created a Playwright Test project at ${this.rootDir}`));
console.log(`
Inside that directory, you can run several commands:
Expand Down

0 comments on commit af5c46a

Please sign in to comment.