]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Test for Pull Request 271
authorIan Coleman <ian@iancoleman.io>
Sun, 10 Nov 2019 23:11:40 +0000 (10:11 +1100)
committerIan Coleman <ian@iancoleman.io>
Sun, 10 Nov 2019 23:11:40 +0000 (10:11 +1100)
tests/spec/tests.js

index 1725a2d12a7ddaa54f583328f5fdaf37a27fe311..977294ca28ade58b2a55c390b52e37792ae2cb50 100644 (file)
@@ -4118,4 +4118,21 @@ it('Can use root keys to generate segwit table rows', function(done) {
     });
 });
 
+// Pull Request 271
+// Allow converting mnemonic back to raw entropy value
+fit('Converts mnemonics into raw entropy', function(done) {
+    driver.findElement(By.css('.phrase'))
+        .sendKeys('abandon abandon about');
+    driver.sleep(generateDelay).then(function() {
+        driver.findElement(By.css('.use-entropy'))
+            .click();
+        driver.findElement(By.css('.entropy'))
+            .getAttribute("value")
+            .then(function(entropy) {
+                expect(entropy).toBe("00000001");
+                done();
+            });
+    });
+});
+
 });