Skip to content

Commit

Permalink
Fix some typos at code comments (#2581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliyahu-Machluf committed Jan 19, 2024
1 parent cbae699 commit 87eed9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sinon/fake.js
Expand Up @@ -134,7 +134,7 @@ fake.resolves = function resolves(value) {
* var f1 = sinon.fake.rejects(":(");
*
* try {
* await ft();
* await f1();
* } catch (error) {
* console.log(error);
* // ":("
Expand Down
2 changes: 1 addition & 1 deletion lib/sinon/util/core/extend.js
Expand Up @@ -114,7 +114,7 @@ module.exports = function extend(target, ...sources) {
enumerable: sourceOwnPropertyDescriptor.enumerable,
};
/*
if the sorce has an Accessor property copy over the accessor functions (get and set)
if the source has an Accessor property copy over the accessor functions (get and set)
data properties has writable attribute where as accessor property don't
REF: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#properties
*/
Expand Down

0 comments on commit 87eed9d

Please sign in to comment.