aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/tests.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 10575ef..d57b753 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -5122,4 +5122,26 @@ it('Generates ethereum addresses from a public key', function(done) {
5122 }); 5122 });
5123}); 5123});
5124 5124
5125// https://github.com/iancoleman/bip39/issues/469
5126fit('Generates ethereum private keys with the correct padding', function(done) {
5127 var phrase = "flip vicious divorce angle toward say derive blue refuse load word creek once expire bounce";
5128 let withoutPadding = "0x53121fc5d193e623d2dbf43b2a96640bbed16bd530947fff8dda12f1aec828";
5129 let withPadding = "0x0053121fc5d193e623d2dbf43b2a96640bbed16bd530947fff8dda12f1aec828";
5130 let skIndex = 15;
5131 driver.findElement(By.css('.phrase'))
5132 .sendKeys(phrase);
5133 selectNetwork('ETH - Ethereum');
5134 driver.sleep(generateDelay).then(function() {
5135 driver.findElements(By.css(".privkey"))
5136 .then(function(els) {
5137 els[skIndex].getText()
5138 .then(function(sk) {
5139 expect(sk).toBe(withPadding);
5140 expect(sk).not.toBe(withoutPadding);
5141 done();
5142 });
5143 })
5144 });
5145});
5146
5125}); 5147});