mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-18 00:12:18 +00:00
Template code in comment for future tests.
This commit is contained in:
31
tests.js
31
tests.js
@@ -1762,6 +1762,37 @@ page.open(url, function(status) {
|
||||
});
|
||||
},
|
||||
|
||||
// If you wish to add more tests, do so here...
|
||||
|
||||
// Here is a blank test template
|
||||
/*
|
||||
|
||||
function() {
|
||||
page.open(url, function(status) {
|
||||
// Do something on the page
|
||||
page.evaluate(function() {
|
||||
$(".phrase").val("abandon abandon ability").trigger("input");
|
||||
});
|
||||
waitForGenerate(function() {
|
||||
// Check the result of doing the thing
|
||||
var expected = "1Di3Vp7tBWtyQaDABLAjfWtF6V7hYKJtug";
|
||||
var actual = page.evaluate(function() {
|
||||
return $(".address:first").text();
|
||||
});
|
||||
if (actual != expected) {
|
||||
console.log("A specific message about what failed");
|
||||
console.log("Expected: " + expected);
|
||||
console.log("Actual: " + actual);
|
||||
fail();
|
||||
}
|
||||
// Run the next test
|
||||
next();
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
*/
|
||||
|
||||
];
|
||||
|
||||
console.log("Running tests...");
|
||||
|
||||
Reference in New Issue
Block a user