@sprucelabs/test-utils 3.2.108 → 3.3.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/build/assert/assert.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ type IsAny<T> = IfAny<T, true, never>;
|
|
|
7
7
|
type TypeEqual<T, U> = IsAny<T> extends never ? Exclude<T, U> extends never ? Exclude<U, T> extends never ? true : false : false : false;
|
|
8
8
|
declare function isExactType<T, E, Pass = TypeEqual<T, E>>(_: Pass): void;
|
|
9
9
|
export interface ISpruceAssert {
|
|
10
|
+
isInstanceOf<T>(test: T, Test: new (...props: any[]) => T): void;
|
|
10
11
|
isNumber(actual: any, message?: string): asserts actual is number;
|
|
11
12
|
isType: typeof expectType;
|
|
12
13
|
isExactType: typeof isExactType;
|
package/build/assert/assert.js
CHANGED
|
@@ -7,6 +7,7 @@ type IsAny<T> = IfAny<T, true, never>;
|
|
|
7
7
|
type TypeEqual<T, U> = IsAny<T> extends never ? Exclude<T, U> extends never ? Exclude<U, T> extends never ? true : false : false : false;
|
|
8
8
|
declare function isExactType<T, E, Pass = TypeEqual<T, E>>(_: Pass): void;
|
|
9
9
|
export interface ISpruceAssert {
|
|
10
|
+
isInstanceOf<T>(test: T, Test: new (...props: any[]) => T): void;
|
|
10
11
|
isNumber(actual: any, message?: string): asserts actual is number;
|
|
11
12
|
isType: typeof expectType;
|
|
12
13
|
isExactType: typeof isExactType;
|