Skip to content

Commit 0051483

Browse files
docs: correct provide(s) typo in error (yeoman#569)
* docs: correct provide(s) typo in error * Update environment.js --------- Co-authored-by: Marcelo Shima <[email protected]>
1 parent 722aba5 commit 0051483

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default class Store {
200200
private _getGenerator(module: any, meta: BaseGeneratorMeta) {
201201
const Generator = module.default?.default ?? module.default ?? module;
202202
if (typeof Generator !== 'function') {
203-
throw new TypeError("The generator doesn't provides a constructor.");
203+
throw new TypeError("The generator doesn't provide a constructor.");
204204
}
205205

206206
Object.assign(Generator, meta);

test/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ for (const generatorVersion of allVersions) {
463463
return this.env.run('no-constructor:app').then(
464464
() => assert.fail(),
465465
error => {
466-
expect(error.message).toMatch('provides a constructor');
466+
expect(error.message).toMatch('provide a constructor');
467467
},
468468
);
469469
});

0 commit comments

Comments
 (0)