@@ -48,7 +48,7 @@ describe('project scaffolder', () => {
48
48
const license = any . string ( ) ;
49
49
const projectLanguage = any . word ( ) ;
50
50
const licenseBadge = any . url ( ) ;
51
- const languageScaffolders = any . simpleObject ( ) ;
51
+ const languages = any . simpleObject ( ) ;
52
52
const vcsHosts = any . simpleObject ( ) ;
53
53
const documentation = any . simpleObject ( ) ;
54
54
const vcs = any . simpleObject ( ) ;
@@ -94,7 +94,7 @@ describe('project scaffolder', () => {
94
94
const contributingResults = any . simpleObject ( ) ;
95
95
when ( optionsValidator . validate )
96
96
. calledWith ( options )
97
- . mockReturnValue ( { languages : languageScaffolders , vcsHosts, decisions, plugins : { dependencyUpdaters} } ) ;
97
+ . mockReturnValue ( { vcsHosts, decisions, plugins : { dependencyUpdaters, languages } } ) ;
98
98
when ( prompts . promptForBaseDetails )
99
99
. calledWith ( projectPath , decisions )
100
100
. mockResolvedValue ( {
@@ -107,7 +107,7 @@ describe('project scaffolder', () => {
107
107
[ coreQuestionNames . VISIBILITY ] : visibility
108
108
} ) ;
109
109
when ( languagePrompt . default )
110
- . calledWith ( languageScaffolders , decisions )
110
+ . calledWith ( languages , decisions )
111
111
. mockResolvedValue ( { [ questionNames . PROJECT_LANGUAGE ] : projectLanguage } ) ;
112
112
when ( scaffoldGit )
113
113
. calledWith ( gitRepoShouldBeInitialized , projectPath , projectName , vcsHosts , visibility , decisions )
@@ -259,7 +259,7 @@ describe('project scaffolder', () => {
259
259
} ;
260
260
when ( optionsValidator . validate )
261
261
. calledWith ( options )
262
- . mockReturnValue ( { languages : languageScaffolders , vcsHosts, decisions, plugins : { } } ) ;
262
+ . mockReturnValue ( { vcsHosts, decisions, plugins : { languages } } ) ;
263
263
scaffoldGit . mockResolvedValue ( vcs ) ;
264
264
liftGit . mockResolvedValue ( { nextSteps : gitNextSteps } ) ;
265
265
prompts . promptForBaseDetails . mockResolvedValue ( {
@@ -270,9 +270,9 @@ describe('project scaffolder', () => {
270
270
[ coreQuestionNames . DESCRIPTION ] : description
271
271
} ) ;
272
272
when ( languagePrompt . default )
273
- . calledWith ( languageScaffolders , decisions )
273
+ . calledWith ( languages , decisions )
274
274
. mockResolvedValue ( { [ questionNames . PROJECT_LANGUAGE ] : projectLanguage } ) ;
275
- when ( languageScaffolder . default ) . calledWith ( languageScaffolders , projectLanguage , {
275
+ when ( languageScaffolder . default ) . calledWith ( languages , projectLanguage , {
276
276
projectName,
277
277
projectRoot : projectPath ,
278
278
visibility,
@@ -308,7 +308,7 @@ describe('project scaffolder', () => {
308
308
it ( 'should consider the language details to be optional' , async ( ) => {
309
309
when ( optionsValidator . validate )
310
310
. calledWith ( options )
311
- . mockReturnValue ( { languages : languageScaffolders , vcsHosts, decisions, plugins : { } } ) ;
311
+ . mockReturnValue ( { vcsHosts, decisions, plugins : { languages } } ) ;
312
312
scaffoldGit . mockResolvedValue ( vcs ) ;
313
313
prompts . promptForBaseDetails . mockResolvedValue ( {
314
314
[ coreQuestionNames . PROJECT_NAME ] : projectName ,
@@ -318,7 +318,7 @@ describe('project scaffolder', () => {
318
318
[ coreQuestionNames . DESCRIPTION ] : description
319
319
} ) ;
320
320
when ( languagePrompt . default )
321
- . calledWith ( languageScaffolders , decisions )
321
+ . calledWith ( languages , decisions )
322
322
. mockResolvedValue ( { [ questionNames . PROJECT_LANGUAGE ] : projectLanguage } ) ;
323
323
vcsHostScaffolder . default . mockResolvedValue ( vcsOriginDetails ) ;
324
324
languageScaffolder . default . mockResolvedValue ( { } ) ;
0 commit comments