a 2.1.2 → 3.0.1

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.
Files changed (4) hide show
  1. package/AUTHORS +1 -1
  2. package/README.md +744 -740
  3. package/index.js +14 -17
  4. package/package.json +16 -20
package/index.js CHANGED
@@ -1,17 +1,14 @@
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
+
5
+ var a_mock = require('a_mock');
6
+
7
+
8
+ module.exports = {
9
+ mock: a_mock.mock,
10
+ expectRequire: a_mock.expectRequire,
11
+ requireMock: a_mock.requireMock,
12
+ then: a_mock.then
13
+ };
14
+
package/package.json CHANGED
@@ -1,20 +1,16 @@
1
- {
2
- "name": "a",
3
- "version": "2.1.2",
4
- "main": "index.js",
5
- "title": "a",
6
- "description": "Mocking framework and test framework in compact when-style. With recursive test runner",
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
- "a_test": "1.0.9"
12
- },
13
- "repository" : {
14
- "type" : "git",
15
- "url" : "git@github.com:alfateam/a.git"
16
- },
17
- "bin": {
18
- "a": "./node_modules/a_test/dist/bin/a.js"
19
- }
20
- }
1
+ {
2
+ "name": "a",
3
+ "version": "3.0.1",
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
+ }