X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests.js;h=89f4ce367462fdf27dcff025ebebcec295ddc887;hb=49b21f122a232330f7efc499095d8d80f7895a20;hp=6a7a960b1a027cfe7be1c9d176497e618c584647;hpb=24137d96070eb6cb47ef8239738ec6a135f0b675;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/tests.js b/tests.js index 6a7a960..89f4ce3 100644 --- a/tests.js +++ b/tests.js @@ -4,7 +4,7 @@ var page = require('webpage').create(); var url = 'src/index.html'; -var testMaxTime = 10000; +var testMaxTime = 20000; page.viewportSize = { width: 1024, @@ -624,12 +624,12 @@ page.open(url, function(status) { // check the address is generated correctly // this value comes from // https://www.myetherwallet.com/#view-wallet-info - // I do not understand the capitalization scheme for this hex encoding + // Unusual capitalization is due to checksum var expected = "0xe5815d5902Ad612d49283DEdEc02100Bd44C2772"; var actual = page.evaluate(function() { return $(".address:first").text(); }); - if (actual != expected.toLowerCase()) { + if (actual != expected) { console.log("Ethereum address is incorrect"); console.log("Expected: " + expected); console.log("Actual: " + actual);