Skip to content

Commit 3479728

Browse files
committed
Merge pull request #31 from keithamus/release-0.7.0
Release 0.7.0
2 parents aa99490 + d125cc1 commit 3479728

File tree

5 files changed

+29
-7
lines changed

5 files changed

+29
-7
lines changed

History.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### Note
2+
3+
As of 0.6.0, the History.md file has been deprecated. [Please refer to the full
4+
commit logs available on GitHub](https://github.com/chaijs/chai-spies/commits/master).
5+
6+
---
7+
18
0.6.0 / 2015-04-24
29
==================
310

ReleaseNotes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release Notes
22

3+
## Note
4+
5+
As of 0.6.0, the ReleaseNotes.md file has been deprecated. [Please refer to the release notes available on Github](https://github.com/chaijs/chai-spies/releases).
6+
---
7+
38
## 0.6.0 / 2015-04-24
49

510
Added `.spy.on` and `.spy.object` to easily make new spies, for example:

chai-spies.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,23 @@
8787
s += " }";
8888
return s;
8989
};
90-
proxy.__spy = {
90+
91+
/**
92+
* # proxy.reset (function)
93+
*
94+
* Resets __spy object parameters for instantiation and reuse
95+
* @returns proxy spy object
96+
*/
97+
proxy.reset = function() {
98+
this.__spy = {
9199
calls: []
92-
, called: false
93-
, name: name
94-
};
100+
, called: false
101+
, name: name
102+
};
103+
return this;
104+
}
95105

96-
return proxy;
106+
return proxy.reset();
97107
}
98108

99109
/**

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "chai-spies",
33
"repo": "chaijs/chai-spies",
4-
"version": "0.6.0",
4+
"version": "0.7.0",
55
"description": "Spies for the Chai assertion library.",
66
"license": "MIT",
77
"keywords": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jake Luer <jake@alogicalparadox.com> (http://alogicalparadox.com)",
33
"name": "chai-spies",
44
"description": "Spies for the Chai assertion library.",
5-
"version": "0.6.0",
5+
"version": "0.7.0",
66
"repository": {
77
"type": "git",
88
"url": "git://github.com/logicalparadox/chai-spies.git"

0 commit comments

Comments
 (0)