diff options
author | Ian Coleman <ian@iancoleman.io> | 2019-11-11 10:11:40 +1100 |
---|---|---|
committer | Ian Coleman <ian@iancoleman.io> | 2019-11-11 10:11:40 +1100 |
commit | 659b06a7b8fac1ba723f0bf95e5d8f630619e2f2 (patch) | |
tree | c0540f17dde93a85271cdb2cabcd6ec36ccd9395 | |
parent | 653538cd3a8e5e8432df7da7299cff5306389889 (diff) | |
download | BIP39-659b06a7b8fac1ba723f0bf95e5d8f630619e2f2.tar.gz BIP39-659b06a7b8fac1ba723f0bf95e5d8f630619e2f2.tar.zst BIP39-659b06a7b8fac1ba723f0bf95e5d8f630619e2f2.zip |
Test for Pull Request 271
-rw-r--r-- | tests/spec/tests.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 1725a2d..977294c 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -4118,4 +4118,21 @@ it('Can use root keys to generate segwit table rows', function(done) { | |||
4118 | }); | 4118 | }); |
4119 | }); | 4119 | }); |
4120 | 4120 | ||
4121 | // Pull Request 271 | ||
4122 | // Allow converting mnemonic back to raw entropy value | ||
4123 | fit('Converts mnemonics into raw entropy', function(done) { | ||
4124 | driver.findElement(By.css('.phrase')) | ||
4125 | .sendKeys('abandon abandon about'); | ||
4126 | driver.sleep(generateDelay).then(function() { | ||
4127 | driver.findElement(By.css('.use-entropy')) | ||
4128 | .click(); | ||
4129 | driver.findElement(By.css('.entropy')) | ||
4130 | .getAttribute("value") | ||
4131 | .then(function(entropy) { | ||
4132 | expect(entropy).toBe("00000001"); | ||
4133 | done(); | ||
4134 | }); | ||
4135 | }); | ||
4136 | }); | ||
4137 | |||
4121 | }); | 4138 | }); |