Skip to content

Commit

Permalink
docs: correct provide(s) typo in error (#569)
Browse files Browse the repository at this point in the history
* docs: correct provide(s) typo in error

* Update environment.js

---------

Co-authored-by: Marcelo Shima <[email protected]>
  • Loading branch information
JoshuaKGoldberg and mshima authored Jan 24, 2025
1 parent 722aba5 commit 0051483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default class Store {
private _getGenerator(module: any, meta: BaseGeneratorMeta) {
const Generator = module.default?.default ?? module.default ?? module;
if (typeof Generator !== 'function') {
throw new TypeError("The generator doesn't provides a constructor.");
throw new TypeError("The generator doesn't provide a constructor.");
}

Object.assign(Generator, meta);
Expand Down
2 changes: 1 addition & 1 deletion test/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ for (const generatorVersion of allVersions) {
return this.env.run('no-constructor:app').then(
() => assert.fail(),
error => {
expect(error.message).toMatch('provides a constructor');
expect(error.message).toMatch('provide a constructor');
},
);
});
Expand Down

0 comments on commit 0051483

Please sign in to comment.