Updated dist files.

This commit is contained in:
Richard Moore 2020-08-27 22:04:58 -04:00
parent d01d0c8448
commit f24240eddf
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
19 changed files with 41 additions and 25 deletions

@ -26,7 +26,7 @@
"dist": "browserify ./src/index.js -o ./dist/index.js && uglifyjs --compress --mangle --output ./dist/index.min.js -- ./dist/index.js", "dist": "browserify ./src/index.js -o ./dist/index.js && uglifyjs --compress --mangle --output ./dist/index.min.js -- ./dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"tarballHash": "0x16f6aa4e890988a6b1ed7dc9720a2b12baef0d3b1024bfa1411e47d4209cc8b2", "tarballHash": "0x467b15771855ef575183199ea61680632cd68f35f62cdefcbcdf14a4316e8782",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.3" "version": "5.0.4"
} }

@ -1 +1 @@
export declare const version = "tests/5.0.5"; export declare const version = "tests/5.0.6";

@ -1,2 +1,2 @@
export const version = "tests/5.0.5"; export const version = "tests/5.0.6";
//# sourceMappingURL=_version.js.map //# sourceMappingURL=_version.js.map

@ -6,5 +6,5 @@ import "./test-providers";
import "./test-utils"; import "./test-utils";
import "./test-wallet"; import "./test-wallet";
import "./test-wordlists"; import "./test-wordlists";
import { Reporter } from "./reporter"; import { LogFunc, Reporter, setLogFunc } from "./reporter";
export { Reporter }; export { LogFunc, Reporter, setLogFunc };

@ -7,6 +7,6 @@ import "./test-providers";
import "./test-utils"; import "./test-utils";
import "./test-wallet"; import "./test-wallet";
import "./test-wordlists"; import "./test-wordlists";
import { Reporter } from "./reporter"; import { Reporter, setLogFunc } from "./reporter";
export { Reporter }; export { Reporter, setLogFunc };
//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,gBAAgB,CAAC;AACxB,OAAO,iBAAiB,CAAC;AACzB,OAAO,2BAA2B,CAAC;AACnC,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,CAAA"} {"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,gBAAgB,CAAC;AACxB,OAAO,iBAAiB,CAAC;AACzB,OAAO,2BAA2B,CAAC;AACnC,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAW,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAW,QAAQ,EAAE,UAAU,EAAE,CAAA"}

@ -1,5 +1,7 @@
interface Runner { interface Runner {
on(event: string, callback: (...args: Array<any>) => void): Runner; on(event: string, callback: (...args: Array<any>) => void): Runner;
} }
export declare type LogFunc = (message: string) => void;
export declare function setLogFunc(logFunc: LogFunc): void;
export declare function Reporter(runner: Runner): void; export declare function Reporter(runner: Runner): void;
export {}; export {};

@ -20,6 +20,10 @@ function getDelta(t0) {
} }
return '(' + minutes + ':' + seconds + ')'; return '(' + minutes + ':' + seconds + ')';
} }
let _logFunc = console.log.bind(console);
export function setLogFunc(logFunc) {
_logFunc = logFunc;
}
export function Reporter(runner) { export function Reporter(runner) {
let suites = []; let suites = [];
// Force Output; Keeps the console output alive with periodic updates // Force Output; Keeps the console output alive with periodic updates
@ -42,7 +46,7 @@ export function Reporter(runner) {
if (!message) { if (!message) {
message = ''; message = '';
} }
console.log(getIndent() + message); _logFunc(getIndent() + message);
lastOutput = getTime(); lastOutput = getTime();
} }
runner.on('suite', function (suite) { runner.on('suite', function (suite) {
@ -76,8 +80,8 @@ export function Reporter(runner) {
if (extras.length) { if (extras.length) {
extra = " (" + extras.join(",") + ") ******** WARNING! ********"; extra = " (" + extras.join(",") + ") ******** WARNING! ********";
} }
log(` Total Tests: ${suite._countPass}/${suite._countTotal} passed ${getDelta(suite._t0)} ${extra} `); log(` Total Tests: ${suite._countPass}/${suite._countTotal} passed ${getDelta(suite._t0)} ${extra} \n`);
log(); //log();
if (suites.length > 0) { if (suites.length > 0) {
let currentSuite = suites[suites.length - 1]; let currentSuite = suites[suites.length - 1];
currentSuite._countFail += suite._countFail; currentSuite._countFail += suite._countFail;
@ -87,6 +91,7 @@ export function Reporter(runner) {
} }
else { else {
clearTimeout(timer); clearTimeout(timer);
log(`# status:${(suite._countPass === suite._countTotal) ? 0 : 1}`);
} }
}); });
runner.on('test', function (test) { runner.on('test', function (test) {

File diff suppressed because one or more lines are too long

@ -1 +1 @@
export declare const version = "tests/5.0.5"; export declare const version = "tests/5.0.6";

@ -1,4 +1,4 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "tests/5.0.5"; exports.version = "tests/5.0.6";
//# sourceMappingURL=_version.js.map //# sourceMappingURL=_version.js.map

@ -6,5 +6,5 @@ import "./test-providers";
import "./test-utils"; import "./test-utils";
import "./test-wallet"; import "./test-wallet";
import "./test-wordlists"; import "./test-wordlists";
import { Reporter } from "./reporter"; import { LogFunc, Reporter, setLogFunc } from "./reporter";
export { Reporter }; export { LogFunc, Reporter, setLogFunc };

@ -10,4 +10,5 @@ require("./test-wallet");
require("./test-wordlists"); require("./test-wordlists");
var reporter_1 = require("./reporter"); var reporter_1 = require("./reporter");
exports.Reporter = reporter_1.Reporter; exports.Reporter = reporter_1.Reporter;
exports.setLogFunc = reporter_1.setLogFunc;
//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,0BAAwB;AACxB,2BAAyB;AACzB,qCAAmC;AACnC,yBAAuB;AACvB,4BAA0B;AAC1B,wBAAsB;AACtB,yBAAuB;AACvB,4BAA0B;AAE1B,uCAAsC;AAE7B,mBAFA,mBAAQ,CAEA"} {"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,0BAAwB;AACxB,2BAAyB;AACzB,qCAAmC;AACnC,yBAAuB;AACvB,4BAA0B;AAC1B,wBAAsB;AACtB,yBAAuB;AACvB,4BAA0B;AAE1B,uCAA2D;AAEzC,mBAFA,mBAAQ,CAEA;AAAE,qBAFA,qBAAU,CAEA"}

@ -1,5 +1,7 @@
interface Runner { interface Runner {
on(event: string, callback: (...args: Array<any>) => void): Runner; on(event: string, callback: (...args: Array<any>) => void): Runner;
} }
export declare type LogFunc = (message: string) => void;
export declare function setLogFunc(logFunc: LogFunc): void;
export declare function Reporter(runner: Runner): void; export declare function Reporter(runner: Runner): void;
export {}; export {};

@ -21,6 +21,11 @@ function getDelta(t0) {
} }
return '(' + minutes + ':' + seconds + ')'; return '(' + minutes + ':' + seconds + ')';
} }
var _logFunc = console.log.bind(console);
function setLogFunc(logFunc) {
_logFunc = logFunc;
}
exports.setLogFunc = setLogFunc;
function Reporter(runner) { function Reporter(runner) {
var suites = []; var suites = [];
// Force Output; Keeps the console output alive with periodic updates // Force Output; Keeps the console output alive with periodic updates
@ -43,7 +48,7 @@ function Reporter(runner) {
if (!message) { if (!message) {
message = ''; message = '';
} }
console.log(getIndent() + message); _logFunc(getIndent() + message);
lastOutput = getTime(); lastOutput = getTime();
} }
runner.on('suite', function (suite) { runner.on('suite', function (suite) {
@ -77,8 +82,8 @@ function Reporter(runner) {
if (extras.length) { if (extras.length) {
extra = " (" + extras.join(",") + ") ******** WARNING! ********"; extra = " (" + extras.join(",") + ") ******** WARNING! ********";
} }
log(" Total Tests: " + suite._countPass + "/" + suite._countTotal + " passed " + getDelta(suite._t0) + " " + extra + " "); log(" Total Tests: " + suite._countPass + "/" + suite._countTotal + " passed " + getDelta(suite._t0) + " " + extra + " \n");
log(); //log();
if (suites.length > 0) { if (suites.length > 0) {
var currentSuite = suites[suites.length - 1]; var currentSuite = suites[suites.length - 1];
currentSuite._countFail += suite._countFail; currentSuite._countFail += suite._countFail;
@ -88,6 +93,7 @@ function Reporter(runner) {
} }
else { else {
clearTimeout(timer); clearTimeout(timer);
log("# status:" + ((suite._countPass === suite._countTotal) ? 0 : 1));
} }
}); });
runner.on('test', function (test) { runner.on('test', function (test) {

File diff suppressed because one or more lines are too long

@ -39,7 +39,7 @@
"scripts": { "scripts": {
"test": "exit 1" "test": "exit 1"
}, },
"tarballHash": "0x260d33d709dd38545678a3af27b1d2fdccbb4eaabd9648a1ce2359a5894ccd7f", "tarballHash": "0x31e0430b48b91ee1086d84a13f6d65a36079051c118c303a8a201462b3d3e813",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.5" "version": "5.0.6"
} }

@ -1 +1 @@
export const version = "tests/5.0.5"; export const version = "tests/5.0.6";