test-fns 1.0.2 → 1.0.3

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/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { given, when, then } from './givenWhenThen';
2
+ export { getError } from '@ehmpathy/error-fns';
package/dist/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.then = exports.when = exports.given = void 0;
3
+ exports.getError = exports.then = exports.when = exports.given = void 0;
4
4
  var givenWhenThen_1 = require("./givenWhenThen");
5
5
  Object.defineProperty(exports, "given", { enumerable: true, get: function () { return givenWhenThen_1.given; } });
6
6
  Object.defineProperty(exports, "when", { enumerable: true, get: function () { return givenWhenThen_1.when; } });
7
7
  Object.defineProperty(exports, "then", { enumerable: true, get: function () { return givenWhenThen_1.then; } });
8
+ // forward the getError method since it is almost always needed with tests
9
+ var error_fns_1 = require("@ehmpathy/error-fns");
10
+ Object.defineProperty(exports, "getError", { enumerable: true, get: function () { return error_fns_1.getError; } });
8
11
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAAoD;AAA3C,sGAAA,KAAK,OAAA;AAAE,qGAAA,IAAI,OAAA;AAAE,qGAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAAoD;AAA3C,sGAAA,KAAK,OAAA;AAAE,qGAAA,IAAI,OAAA;AAAE,qGAAA,IAAI,OAAA;AAE1B,0EAA0E;AAC1E,iDAA+C;AAAtC,qGAAA,QAAQ,OAAA"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "test-fns",
3
3
  "author": "ehmpathy",
4
4
  "description": "write usecase driven tests systematically for simpler, safer, and more readable code",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "repository": "ehmpathy/test-fns",
7
7
  "homepage": "https://github.com/ehmpathy/test-fns",
8
8
  "keywords": [
@@ -78,5 +78,8 @@
78
78
  "path": "./node_modules/cz-conventional-changelog"
79
79
  }
80
80
  },
81
- "license": "MIT"
81
+ "license": "MIT",
82
+ "dependencies": {
83
+ "@ehmpathy/error-fns": "1.0.2"
84
+ }
82
85
  }