Skip to content

Commit

Permalink
test(inquirer): replaced references for inquirer.Separator with the o…
Browse files Browse the repository at this point in the history
…ne from overridable-prompts
  • Loading branch information
travi committed Jun 27, 2022
1 parent 15fc16d commit 78aeb23
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/prompts/questions-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import inquirer, {Separator} from 'inquirer';
import * as prompts from '@form8ion/overridable-prompts';
import {packageManagers, projectTypes} from '@form8ion/javascript-core';
import * as commonPrompts from '@travi/language-scaffolder-prompts';
Expand Down Expand Up @@ -117,7 +116,7 @@ suite('prompts', () => {
name: questionNames.PROJECT_TYPE,
message: 'What type of JavaScript project is this?',
type: 'list',
choices: [...Object.values(projectTypes), new Separator(), 'Other'],
choices: [...Object.values(projectTypes), new prompts.Separator(), 'Other'],
default: projectTypes.PACKAGE
},
{
Expand Down Expand Up @@ -161,7 +160,7 @@ suite('prompts', () => {
type: 'list',
message: 'Where will the application be hosted?',
when: conditionals.projectIsApplication,
choices: [...Object.keys(hosts), new inquirer.Separator(), 'Other']
choices: [...Object.keys(hosts), new prompts.Separator(), 'Other']
}
], decisions)
.resolves({...answers, [questionNames.CONFIGURE_LINTING]: any.word()});
Expand Down
3 changes: 1 addition & 2 deletions src/scaffolder/project-type/package/prompt-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import inquirer from 'inquirer';
import * as prompts from '@form8ion/overridable-prompts';
import any from '@travi/any';
import {assert} from 'chai';
Expand Down Expand Up @@ -27,7 +26,7 @@ suite('bundler prompt', () => {
name: questionNames.PACKAGE_BUNDLER,
type: 'list',
message: 'Which bundler should be used?',
choices: [...Object.keys(bundlers), new inquirer.Separator(), 'Other']
choices: [...Object.keys(bundlers), new prompts.Separator(), 'Other']
}], decisions)
.resolves(answers);

Expand Down
3 changes: 1 addition & 2 deletions src/scaffolder/project-type/prompt-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import inquirer from 'inquirer';
import * as prompts from '@form8ion/overridable-prompts';
import any from '@travi/any';
import {assert} from 'chai';
Expand Down Expand Up @@ -28,7 +27,7 @@ suite('project-type prompts', () => {
name: questionNames.PROJECT_TYPE_CHOICE,
type: 'list',
message: `What type of ${projectType} is this?`,
choices: [...Object.keys(types), new inquirer.Separator(), 'Other']
choices: [...Object.keys(types), new prompts.Separator(), 'Other']
}], decisions)
.resolves(answers);

Expand Down
3 changes: 1 addition & 2 deletions src/testing/prompt-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import inquirer from 'inquirer';
import * as prompts from '@form8ion/overridable-prompts';
import any from '@travi/any';
import {assert} from 'chai';
Expand Down Expand Up @@ -27,7 +26,7 @@ suite('project-type prompts', () => {
name: questionNames.UNIT_TEST_FRAMEWORK,
type: 'list',
message: 'Which type of unit testing framework should be used?',
choices: [...Object.keys(frameworks), new inquirer.Separator(), 'Other']
choices: [...Object.keys(frameworks), new prompts.Separator(), 'Other']
}], decisions)
.resolves(answers);

Expand Down

0 comments on commit 78aeb23

Please sign in to comment.