Skip to content

Commit 188015f

Browse files
committed
fix(language-plugins): removed the default map since the schema already defines a default
1 parent 70c7b75 commit 188015f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/scaffolder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import lift from './lift.js';
1919

2020
export async function scaffold(options) {
2121
const projectRoot = process.cwd();
22-
const {vcsHosts = {}, decisions, plugins: {dependencyUpdaters, languages = {}}} = validate(options);
22+
const {vcsHosts = {}, decisions, plugins: {dependencyUpdaters, languages}} = validate(options);
2323

2424
const {
2525
[coreQuestionNames.PROJECT_NAME]: projectName,

src/scaffolder.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -334,15 +334,15 @@ describe('project scaffolder', () => {
334334
});
335335

336336
it('should pass the license to the language scaffolder as `UNLICENSED` when no license was chosen', async () => {
337-
when(optionsValidator.validate).calledWith(options).mockReturnValue({plugins: {}});
337+
when(optionsValidator.validate).calledWith(options).mockReturnValue({plugins: {languages}});
338338
prompts.promptForBaseDetails.mockResolvedValue({});
339339
languagePrompt.default.mockResolvedValue({[questionNames.PROJECT_LANGUAGE]: projectLanguage});
340340
scaffoldGit.mockResolvedValue({});
341341

342342
await scaffold(options);
343343

344344
expect(languageScaffolder.default).toHaveBeenCalledWith(
345-
{},
345+
languages,
346346
projectLanguage,
347347
{
348348
license: 'UNLICENSED',

0 commit comments

Comments
 (0)