]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - tests/spec/tests.js
Merge pull request #196 from fujicoin/mod-fujicoin-SegWit
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / tests / spec / tests.js
index 367dc911e119d70df9037d090ddd891cda5e3f5b..64ed71b2f8e9ef037a640fcc6aacc19266411675 100644 (file)
@@ -634,6 +634,13 @@ it('Allows selection of Neblio', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Beetlecoin', function(done) {
+    var params = {
+        selectText: "BEET - Beetlecoin",
+        firstAddress: "BVmtbEsGrjpknprmpHFq26z4kYHJUFHE71",
+    };
+    testNetwork(done, params);
+});
 
 // BIP39 seed is set from phrase
 it('Sets the bip39 seed from the prhase', function(done) {
@@ -2961,4 +2968,20 @@ it('Shows the checksum for the entropy with the correct groupings', function(don
     });
 });
 
+it('Uses vprv for bitcoin testnet p2wpkh', function(done) {
+    selectNetwork("BTC - Bitcoin Testnet");
+    driver.findElement(By.css('#bip84-tab a'))
+        .click()
+    driver.findElement(By.css('.phrase'))
+        .sendKeys('abandon abandon ability');
+    driver.sleep(generateDelay).then(function() {
+        driver.findElement(By.css('.root-key'))
+            .getAttribute("value")
+            .then(function(path) {
+                expect(path).toBe("vprv9DMUxX4ShgxML9N2YV5CvWEebWrM9aJ5ULpbRRyzyWu6vs4BzTvbfFFrH41N5hVi7MYSfiugd765L3JmAfDM5po36Y8ouCKRDeYQwByCmS7");
+                done();
+            })
+    });
+});
+
 });