Updated dist files (for CI).
This commit is contained in:
parent
6f2e9a7941
commit
027467ad86
2
packages/tests/lib.esm/_version.d.ts
vendored
2
packages/tests/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "tests/5.0.0-beta.151";
|
||||
export declare const version = "tests/5.0.0-beta.152";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "tests/5.0.0-beta.151";
|
||||
export const version = "tests/5.0.0-beta.152";
|
||||
|
@ -10,9 +10,20 @@ function randomCase(seed, text) {
|
||||
return c;
|
||||
}).join("");
|
||||
}
|
||||
// Too many test cases are caussing issues for the CI
|
||||
// Only run random cases under random-128
|
||||
function checkRandom(name) {
|
||||
if (name.substring(0, 7) === "random-") {
|
||||
return (parseInt(name.substring(7)) <= 128);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
describe('Test HD Node Derivation is Case Agnostic', function () {
|
||||
let tests = loadTests('hdnode');
|
||||
tests.forEach((test) => {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
it("Normalizes case - " + test.name, function () {
|
||||
this.timeout(10000);
|
||||
let wordlist = (ethers.wordlists)[test.locale];
|
||||
@ -26,6 +37,9 @@ describe('Test HD Node Derivation is Case Agnostic', function () {
|
||||
describe('Test HD Node Derivation from Seed', function () {
|
||||
let tests = loadTests('hdnode');
|
||||
tests.forEach((test) => {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
// If there is nothing to derive, skip this portion of the test
|
||||
if (test.hdnodes.length === 0) {
|
||||
return;
|
||||
@ -45,6 +59,9 @@ describe('Test HD Node Derivation from Seed', function () {
|
||||
describe('Test HD Node Derivation from Mnemonic', function () {
|
||||
let tests = loadTests('hdnode');
|
||||
tests.forEach((test) => {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
// If there is nothing to derive, skip this portion of the test
|
||||
if (test.hdnodes.length === 0) {
|
||||
return;
|
||||
@ -67,6 +84,9 @@ describe('Test HD Node Derivation from Mnemonic', function () {
|
||||
describe('Test HD Mnemonic Phrases', function testMnemonic() {
|
||||
let tests = loadTests('hdnode');
|
||||
tests.forEach(function (test) {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
it(('converts mnemonic phrases - ' + test.name), function () {
|
||||
this.timeout(1000000);
|
||||
assert.equal(ethers.utils.mnemonicToSeed(test.mnemonic, test.password), test.seed, 'Converts mnemonic to seed - ' + test.mnemonic + ':' + test.password);
|
||||
|
2
packages/tests/lib/_version.d.ts
vendored
2
packages/tests/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "tests/5.0.0-beta.151";
|
||||
export declare const version = "tests/5.0.0-beta.152";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "tests/5.0.0-beta.151";
|
||||
exports.version = "tests/5.0.0-beta.152";
|
||||
|
@ -14,9 +14,20 @@ function randomCase(seed, text) {
|
||||
return c;
|
||||
}).join("");
|
||||
}
|
||||
// Too many test cases are caussing issues for the CI
|
||||
// Only run random cases under random-128
|
||||
function checkRandom(name) {
|
||||
if (name.substring(0, 7) === "random-") {
|
||||
return (parseInt(name.substring(7)) <= 128);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
describe('Test HD Node Derivation is Case Agnostic', function () {
|
||||
var tests = testcases_1.loadTests('hdnode');
|
||||
tests.forEach(function (test) {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
it("Normalizes case - " + test.name, function () {
|
||||
this.timeout(10000);
|
||||
var wordlist = (ethers_1.ethers.wordlists)[test.locale];
|
||||
@ -30,6 +41,9 @@ describe('Test HD Node Derivation is Case Agnostic', function () {
|
||||
describe('Test HD Node Derivation from Seed', function () {
|
||||
var tests = testcases_1.loadTests('hdnode');
|
||||
tests.forEach(function (test) {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
// If there is nothing to derive, skip this portion of the test
|
||||
if (test.hdnodes.length === 0) {
|
||||
return;
|
||||
@ -49,6 +63,9 @@ describe('Test HD Node Derivation from Seed', function () {
|
||||
describe('Test HD Node Derivation from Mnemonic', function () {
|
||||
var tests = testcases_1.loadTests('hdnode');
|
||||
tests.forEach(function (test) {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
// If there is nothing to derive, skip this portion of the test
|
||||
if (test.hdnodes.length === 0) {
|
||||
return;
|
||||
@ -71,6 +88,9 @@ describe('Test HD Node Derivation from Mnemonic', function () {
|
||||
describe('Test HD Mnemonic Phrases', function testMnemonic() {
|
||||
var tests = testcases_1.loadTests('hdnode');
|
||||
tests.forEach(function (test) {
|
||||
if (!checkRandom(test.name)) {
|
||||
return;
|
||||
}
|
||||
it(('converts mnemonic phrases - ' + test.name), function () {
|
||||
this.timeout(1000000);
|
||||
assert_1.default.equal(ethers_1.ethers.utils.mnemonicToSeed(test.mnemonic, test.password), test.seed, 'Converts mnemonic to seed - ' + test.mnemonic + ':' + test.password);
|
||||
|
@ -33,7 +33,7 @@
|
||||
"scripts": {
|
||||
"test": "exit 1"
|
||||
},
|
||||
"tarballHash": "0xeda2af2bca9cb7626428bc674ba63e9a4a8f07b519d5a14325246d9745f3d765",
|
||||
"tarballHash": "0xa9805c3e7bb54b33950a1ee4bf7c56cab144da409f192a544ad23adab1d239be",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.151"
|
||||
"version": "5.0.0-beta.152"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "tests/5.0.0-beta.151";
|
||||
export const version = "tests/5.0.0-beta.152";
|
||||
|
Loading…
Reference in New Issue
Block a user