mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 00:29:06 -06:00
chore: fix pluginsOnly typo
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = async function assertPromptModule (
|
||||
opts = {}
|
||||
) {
|
||||
// auto fill non-module prompts
|
||||
if (opts.plguinsOnly) {
|
||||
if (opts.pluginsOnly) {
|
||||
expectedPrompts.unshift(
|
||||
{
|
||||
message: 'Please pick a preset',
|
||||
@@ -40,7 +40,7 @@ module.exports = async function assertPromptModule (
|
||||
const creator = new Creator('test', '/', [].concat(module))
|
||||
const preset = await creator.promptAndResolvePreset()
|
||||
|
||||
if (opts.plguinsOnly) {
|
||||
if (opts.pluginsOnly) {
|
||||
delete preset.useConfigFiles
|
||||
}
|
||||
expect(preset).toEqual(expectedOptions)
|
||||
|
||||
@@ -23,7 +23,7 @@ test('should pass', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -49,6 +49,6 @@ test('should not include the plugin if ts is also present', async () => {
|
||||
[mockTSModule, moduleToTest],
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -28,6 +28,6 @@ test('CSS pre-processor ', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -29,7 +29,7 @@ test('cypress', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -57,6 +57,6 @@ test('nightwatch', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -37,7 +37,7 @@ test('base', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -69,7 +69,7 @@ test('airbnb', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -101,7 +101,7 @@ test('standard', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -133,6 +133,6 @@ test('prettier', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -24,6 +24,6 @@ test('pwa', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -23,6 +23,6 @@ test('router', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -48,7 +48,7 @@ test('with TSLint', async () => {
|
||||
[moduleToTest, linterModule],
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -96,6 +96,6 @@ test('with ESLint', async () => {
|
||||
[moduleToTest, linterModule],
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -29,7 +29,7 @@ test('mocha', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -57,6 +57,6 @@ test('jest', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -23,6 +23,6 @@ test('vuex', async () => {
|
||||
moduleToTest,
|
||||
expectedPrompts,
|
||||
expectedOptions,
|
||||
{ plguinsOnly: true }
|
||||
{ pluginsOnly: true }
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user