Skip to content

Commit

Permalink
Merge pull request #1366 from GProst/master
Browse files Browse the repository at this point in the history
Fix typo in docs: stubs.md example
  • Loading branch information
fatso83 committed Mar 27, 2017
2 parents cdd9abe + 5a5de4a commit 17c2639
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/_releases/v2.0.0/stubs.md
Expand Up @@ -474,11 +474,11 @@ var myObj = {
prop: 'foo'
};

createStub(myObj, 'prop').get(function getterFn() {
sinon.stub(myObj, 'prop').get(function getterFn() {
return 'bar';
});

myObj.example; // 'bar'
myObj.prop; // 'bar'
```

#### `stub.set(setterFn)`
Expand All @@ -491,7 +491,7 @@ var myObj = {
prop: 'foo'
};

createStub(myObj, 'prop').set(function setterFn(val) {
sinon.stub(myObj, 'prop').set(function setterFn(val) {
myObj.example = val;
});

Expand Down
6 changes: 3 additions & 3 deletions docs/_releases/v2.1.0/stubs.md
Expand Up @@ -457,11 +457,11 @@ var myObj = {
prop: 'foo'
};

createStub(myObj, 'prop').get(function getterFn() {
sinon.stub(myObj, 'prop').get(function getterFn() {
return 'bar';
});

myObj.example; // 'bar'
myObj.prop; // 'bar'
```

#### `stub.set(setterFn);`
Expand All @@ -474,7 +474,7 @@ var myObj = {
prop: 'foo'
};

createStub(myObj, 'prop').set(function setterFn(val) {
sinon.stub(myObj, 'prop').set(function setterFn(val) {
myObj.example = val;
});

Expand Down
6 changes: 3 additions & 3 deletions docs/release-source/release/stubs.md
Expand Up @@ -474,11 +474,11 @@ var myObj = {
prop: 'foo'
};

createStub(myObj, 'prop').get(function getterFn() {
sinon.stub(myObj, 'prop').get(function getterFn() {
return 'bar';
});

myObj.example; // 'bar'
myObj.prop; // 'bar'
```

#### `stub.set(setterFn)`
Expand All @@ -491,7 +491,7 @@ var myObj = {
prop: 'foo'
};

createStub(myObj, 'prop').set(function setterFn(val) {
sinon.stub(myObj, 'prop').set(function setterFn(val) {
myObj.example = val;
});

Expand Down

0 comments on commit 17c2639

Please sign in to comment.