fixes
- [
8c4c458
] - fix: support mock function which has properties (#53) (killa <[email protected]>)
features
- [
d2e4c28
] - feat: support mock class method from instance (#52) (fengmk2 <[email protected]>)
features
- [
5ed8a73
] - feat: mm.spy method (#51) (Yiyu He <[email protected]>)
fixes
- [
8fea4ad
] - fix: support mock jest.fn() (Yiyu He <[email protected]>)
fixes
- [
0e310b4
] - fix: do function type check after execute (#49) (Yiyu He <[email protected]>)
fixes
- [
6ca26e4
] - fix: fix this binding (#48) (Yiyu He <[email protected]>)
features
- [
f49c32e
] - feat: spy function by default (#47) (Yiyu He <[email protected]>) - [
d8d9aa3
] - feat: [BREAKING] don't allow to mock async function to normal function (#46) (fengmk2 <[email protected]>)
others
- [
eec0876
] - chore: fix errorOnce (fengmk2 <[email protected]>)
features
- [
c204c5e
] - feat: support mock error once (#45) (fengmk2 <[email protected]>)
others
- [
2cb2baf
] - test: run test on macos on azure-pipelines (#44) (fengmk2 <[email protected]>)
fixes
- [
58eb437
] - fix: typpings error (#43) (whxaxes <[email protected]>)
others
- [
6a84a0a
] - refactor(tsd): use Interface Function Type so that egg-mock can extends this; (#42) (paranoidjk <[email protected]>)
features
- [
ea75ed5
] - feat: add .d.ts (#41) (paranoidjk <[email protected]>)
fixes
- [
2cd32f9
] - fix: mock http error response need socket (#40) (Yiyu He <[email protected]>)
fixes
- [
721dc6b
] - fix: support node 10 on https (#39) (fengmk2 <[email protected]>)
features
- [
72e5478
] - feat: use stream class to replace EventEmitter. (Qi Yu <[email protected]>)
others
- [
eb0eaae
] - test: add mock request pipe test case (fengmk2 <[email protected]>)
fixes
- [
ea1194c
] - fix: should support http request mock on node8 (#38) (fengmk2 <[email protected]>) - [
007f053
] - fix: README typo (#32) (HC Chen <[email protected]>)
others
- [
0e818e3
] - test: fix test on node4 (#33) (Haoliang Gao <[email protected]>)
- deps: use muk-prop instead of muk (#30)
- fix: Only restore the http/https request when used.
- feat: upgrade dependencies (#29)
- fix: keep status code (#28)
- feat: export isMocked (#27)
- deps: upgrade muk (#26)
- feat: remove EventEmitter from 'event' module
- fix: should support mock multi env
- test: use codecov.io
- feat: support mock process.env.KEY
- deps: upgrade muk to 0.4.0 to support mock getter
- fix: deps muk 0.3.2
- hotfix: fix mm.error in es6
- readme: add sync methods and error properties
- feat: mock error support props
- chore: use npm scripts
- feat(sync): add sync mock methods
- feat: support promise
- still thunkify the methods
- docs(readme): add badges
- feat(error): support mock error on generator function
- feat(data): support mock generator function
- if coveralls crash, dont break the test pass
- fix http request mock not work on 0.11.12 and no more test on 0.8.x
- support thunkify cnpm/cnpmjs.org#196
- fix Node 0.11 broken. (@alsotang)
- fix test cases
- http.request mock support mm.http.request({host: $host, url: $url})
- add npm image
- update muk to 0.3.1, it had fixed fent/node-muk#2 bug
- hot fixed #5 mock same method twices restore fails bug
- add test for fs.readFileSync. fixed #5
- support coveralls
- use blanket instead of jscover
- fixed spawn test fail on node 0.6
- support emtpy error
- Merge pull request #3 from dead-horse/support-spawn
- do not emit when null
- add support for spawn
- fix mm.datas
- update travis
- update muk to 0.3.0+
- fixed restore not effect on http(s)
- add request() mock statusCode
- add mm.datas(), mm.data(), mm.empty() mock methods
- try to find callback in arguments
- fixed CERT_HAS_EXPIRED with
rejectUnauthorized = false
- fix http.request() twice bug; add res.setEncoding method
- fixed #1 support mm.https.request mock helpers
- add mm() just like muk() does
- add req.abort() for mock request object
- when mock response error, must emit
req
error notres
error event. - replace logo
- add mock http.request() and http.requestError()
- add mm.error() impl
- Release 0.0.1