@uxf/core 11.70.0 → 11.72.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/package.json
CHANGED
package/utils/throw-error.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function throwError(message
|
|
1
|
+
export declare function throwError(message: string): never;
|
|
@@ -8,7 +8,7 @@ describe("throwError", () => {
|
|
|
8
8
|
expect(() => (0, throw_error_1.throwError)(message)).toThrow(message);
|
|
9
9
|
});
|
|
10
10
|
it("should throw an error without a message", () => {
|
|
11
|
-
expect(() => (0, throw_error_1.throwError)()).toThrow(Error);
|
|
12
|
-
expect(() => (0, throw_error_1.throwError)()).toThrow();
|
|
11
|
+
expect(() => (0, throw_error_1.throwError)("Error message")).toThrow(Error);
|
|
12
|
+
expect(() => (0, throw_error_1.throwError)("Error message")).toThrow();
|
|
13
13
|
});
|
|
14
14
|
});
|