]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - tests/spec/tests.js
Show the checksum value in the entropy details
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / tests / spec / tests.js
index 9e780162c73e65ff8b8cf7ec567128669c16fb7b..f56b18d0aea1192785b540c21ee31641a38e4613 100644 (file)
@@ -2922,4 +2922,19 @@ it('Can encrypt private keys using BIP38', function(done) {
     });
 }, bip38delay + 5000);
 
+it('Shows the checksum for the entropy', function(done) {
+    driver.findElement(By.css('.use-entropy'))
+        .click();
+    driver.findElement(By.css('.entropy'))
+        .sendKeys("00000000000000000000000000000000");
+    driver.sleep(generateDelay).then(function() {
+        driver.findElement(By.css('.checksum'))
+            .getText()
+            .then(function(text) {
+                expect(text).toBe("1");
+                done();
+            });
+    });
+});
+
 });