Skip to content

Commit 87eed9d

Browse files
Fix some typos at code comments (#2581)
1 parent cbae699 commit 87eed9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/sinon/fake.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fake.resolves = function resolves(value) {
134134
* var f1 = sinon.fake.rejects(":(");
135135
*
136136
* try {
137-
* await ft();
137+
* await f1();
138138
* } catch (error) {
139139
* console.log(error);
140140
* // ":("

lib/sinon/util/core/extend.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module.exports = function extend(target, ...sources) {
114114
enumerable: sourceOwnPropertyDescriptor.enumerable,
115115
};
116116
/*
117-
if the sorce has an Accessor property copy over the accessor functions (get and set)
117+
if the source has an Accessor property copy over the accessor functions (get and set)
118118
data properties has writable attribute where as accessor property don't
119119
REF: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#properties
120120
*/

0 commit comments

Comments
 (0)