Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit

Permalink
chore: fix typo in choiceNames variable name (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored Jun 23, 2020
1 parent a014e6b commit 2c3311f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/create-nuxt-app/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ test('verify default answers', async (t) => {
for (const prompt of saoConfig.prompts) {
if (Array.isArray(prompt.choices)) {
if (prompt.type === 'checkbox') {
const choioceNames = prompt.choices.map(choice => choice.name)
const choioceValues = prompt.choices.map(choice => choice.value)
test(`verify ${prompt.name}: ${choioceNames.join(', ')}`, async (t) => {
const answers = { [prompt.name]: choioceValues }
const choiceNames = prompt.choices.map(choice => choice.name)
const choiceValues = prompt.choices.map(choice => choice.value)
test(`verify ${prompt.name}: ${choiceNames.join(', ')}`, async (t) => {
const answers = { [prompt.name]: choiceValues }
await verifyAnswers(t, answers)
})
}
Expand Down

0 comments on commit 2c3311f

Please sign in to comment.