@clipboard-health/testing-core 0.4.0 → 0.6.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/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/testing-core",
|
|
3
3
|
"description": "TypeScript-friendly testing utilities.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@clipboard-health/util-typescript": "0.
|
|
6
|
+
"@clipboard-health/util-typescript": "0.4.0",
|
|
7
7
|
"tslib": "2.8.0",
|
|
8
8
|
"zod": "3.23.8"
|
|
9
9
|
},
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.expectToBeDefined = expectToBeDefined;
|
|
4
4
|
const strict_1 = require("node:assert/strict");
|
|
5
|
+
const util_typescript_1 = require("@clipboard-health/util-typescript");
|
|
5
6
|
/**
|
|
6
7
|
* Asserts and narrows the type for defined values.
|
|
7
8
|
*
|
|
8
9
|
* @throws {AssertionError} for null or undefined values.
|
|
9
10
|
*/
|
|
10
11
|
function expectToBeDefined(value) {
|
|
11
|
-
(0, strict_1.ok)(
|
|
12
|
+
(0, strict_1.ok)((0, util_typescript_1.isDefined)(value), "Expected value to be defined, got null or undefined");
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=expectToBeDefined.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeDefined.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeDefined.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"expectToBeDefined.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeDefined.ts"],"names":[],"mappings":";;AASA,8CAEC;AAXD,+CAAwC;AAExC,uEAA8D;AAE9D;;;;GAIG;AACH,SAAgB,iBAAiB,CAAI,KAAoB;IACvD,IAAA,WAAE,EAAC,IAAA,2BAAS,EAAC,KAAK,CAAC,EAAE,qDAAqD,CAAC,CAAC;AAC9E,CAAC"}
|