@sprucelabs/test 9.0.0 → 9.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.
- package/build/esm/index.d.ts +3 -1
- package/build/esm/index.js +3 -1
- package/build/esm/lib/assert.d.ts +3 -0
- package/build/esm/lib/assert.js +3 -0
- package/build/esm/lib/decorators.d.ts +3 -0
- package/build/esm/lib/decorators.js +3 -0
- package/build/index.d.ts +3 -1
- package/build/index.js +20 -3
- package/build/lib/assert.d.ts +3 -0
- package/build/lib/assert.js +3 -0
- package/build/lib/decorators.d.ts +3 -0
- package/build/lib/decorators.js +3 -0
- package/package.json +1 -1
package/build/esm/index.d.ts
CHANGED
package/build/esm/index.js
CHANGED
|
@@ -40,5 +40,8 @@ export interface ISpruceAssert {
|
|
|
40
40
|
doesThrowAsync(cb: () => any | Promise<any>, matcher?: string | RegExp | undefined, msg?: string | undefined): Promise<Error>;
|
|
41
41
|
fail(message?: string): void;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
45
|
+
*/
|
|
43
46
|
declare const assert: ISpruceAssert;
|
|
44
47
|
export default assert;
|
package/build/esm/lib/assert.js
CHANGED
|
@@ -16,6 +16,9 @@ import diff from 'variable-diff';
|
|
|
16
16
|
import assertUtil from './assert.utility.js';
|
|
17
17
|
const stringify = assertUtil.stringify.bind(assertUtil);
|
|
18
18
|
function isExactType(_) { }
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
21
|
+
*/
|
|
19
22
|
const assert = {
|
|
20
23
|
areSameType() { },
|
|
21
24
|
isType: expectType,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/** Hooks up before, after, etc. */
|
|
2
2
|
export declare function hookupTestClass(target: any): void;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
5
|
+
*/
|
|
3
6
|
declare function test(description?: string, ...args: any[]): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
4
7
|
declare namespace test {
|
|
5
8
|
var only: (description?: string | undefined, ...args: any[]) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -28,6 +28,9 @@ export function hookupTestClass(target) {
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
33
|
+
*/
|
|
31
34
|
export default function test(description, ...args) {
|
|
32
35
|
return function (target, propertyKey, descriptor) {
|
|
33
36
|
// Lets attach before/after
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
5
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
20
|
+
exports.test = exports.assert = exports.default = void 0;
|
|
7
21
|
var AbstractSpruceTest_1 = require("./lib/AbstractSpruceTest");
|
|
8
22
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AbstractSpruceTest_1).default; } });
|
|
9
|
-
var
|
|
10
|
-
Object.defineProperty(exports, "
|
|
23
|
+
var assert_1 = require("./lib/assert");
|
|
24
|
+
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return __importDefault(assert_1).default; } });
|
|
25
|
+
__exportStar(require("./lib/assert"), exports);
|
|
26
|
+
var decorators_1 = require("./lib/decorators");
|
|
27
|
+
Object.defineProperty(exports, "test", { enumerable: true, get: function () { return __importDefault(decorators_1).default; } });
|
package/build/lib/assert.d.ts
CHANGED
|
@@ -40,5 +40,8 @@ export interface ISpruceAssert {
|
|
|
40
40
|
doesThrowAsync(cb: () => any | Promise<any>, matcher?: string | RegExp | undefined, msg?: string | undefined): Promise<Error>;
|
|
41
41
|
fail(message?: string): void;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
45
|
+
*/
|
|
43
46
|
declare const assert: ISpruceAssert;
|
|
44
47
|
export default assert;
|
package/build/lib/assert.js
CHANGED
|
@@ -12,6 +12,9 @@ const variable_diff_1 = __importDefault(require("variable-diff"));
|
|
|
12
12
|
const assert_utility_1 = __importDefault(require("./assert.utility"));
|
|
13
13
|
const stringify = assert_utility_1.default.stringify.bind(assert_utility_1.default);
|
|
14
14
|
function isExactType(_) { }
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
17
|
+
*/
|
|
15
18
|
const assert = {
|
|
16
19
|
areSameType() { },
|
|
17
20
|
isType: ts_expect_1.expectType,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/** Hooks up before, after, etc. */
|
|
2
2
|
export declare function hookupTestClass(target: any): void;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
5
|
+
*/
|
|
3
6
|
declare function test(description?: string, ...args: any[]): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
4
7
|
declare namespace test {
|
|
5
8
|
var only: (description?: string | undefined, ...args: any[]) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
package/build/lib/decorators.js
CHANGED
|
@@ -23,6 +23,9 @@ function hookupTestClass(target) {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
exports.hookupTestClass = hookupTestClass;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated - Remove and re-import from @sprucelabs/test-utils
|
|
28
|
+
*/
|
|
26
29
|
function test(description, ...args) {
|
|
27
30
|
return function (target, propertyKey, descriptor) {
|
|
28
31
|
// Lets attach before/after
|