a 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +1 -1
- package/README.md +744 -737
- package/index.js +17 -17
- package/package.json +16 -19
- package/.npmignore +0 -2
package/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function avoid_caching() {
|
|
2
|
-
delete require.cache[module.id];
|
|
3
|
-
})();
|
|
4
|
-
var calling_module = module.parent;
|
|
5
|
-
var _when = require('a_test').load(calling_module);
|
|
6
|
-
|
|
7
|
-
var a_mock = require('a_mock');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
when: _when,
|
|
12
|
-
mock: a_mock.mock,
|
|
13
|
-
expectRequire: a_mock.expectRequire,
|
|
14
|
-
requireMock: a_mock.requireMock,
|
|
15
|
-
then: a_mock.then
|
|
16
|
-
};
|
|
17
|
-
|
|
1
|
+
(function avoid_caching() {
|
|
2
|
+
delete require.cache[module.id];
|
|
3
|
+
})();
|
|
4
|
+
var calling_module = module.parent;
|
|
5
|
+
var _when = require('a_test').load(calling_module);
|
|
6
|
+
|
|
7
|
+
var a_mock = require('a_mock');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
when: _when,
|
|
12
|
+
mock: a_mock.mock,
|
|
13
|
+
expectRequire: a_mock.expectRequire,
|
|
14
|
+
requireMock: a_mock.requireMock,
|
|
15
|
+
then: a_mock.then
|
|
16
|
+
};
|
|
17
|
+
|
package/package.json
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "a",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "index.js",
|
|
5
|
-
"title": "a",
|
|
6
|
-
"description": "Mocking framework
|
|
7
|
-
"keywords": ["mock","mocking","partial mock","strict mock","tdd","bdd","test runner","stub","stubbing","mock require","verify","unit test"],
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
},
|
|
12
|
-
"repository" : {
|
|
13
|
-
"type" : "git",
|
|
14
|
-
"url" : "git@github.com:alfateam/a.git"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
"a": "./node_modules/a_test/dist/bin/a.js"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "a",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"title": "a",
|
|
6
|
+
"description": "Mocking framework",
|
|
7
|
+
"keywords": ["mock","mocking","partial mock","strict mock","tdd","bdd","test runner","stub","stubbing","mock require","verify","unit test"],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"a_mock": "1.0.5"
|
|
11
|
+
},
|
|
12
|
+
"repository" : {
|
|
13
|
+
"type" : "git",
|
|
14
|
+
"url" : "git@github.com:alfateam/a.git"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/.npmignore
DELETED