aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2020-11-23 10:28:16 +1100
committerGitHub <noreply@github.com>2020-11-23 10:28:16 +1100
commitd75ddf4ea80cd8385f8d946bd4f50cacbdf6c0cb (patch)
treeecd936e9b06ed6f15432dffd2ea3a90d49189861 /tests
parent4e59e7d6fcafa09d2f35542349ee0be2eaebc1ed (diff)
parent16ff1df7ab1119c97fdb042d494fd5b0f3bfb8c0 (diff)
downloadBIP39-d75ddf4ea80cd8385f8d946bd4f50cacbdf6c0cb.tar.gz
BIP39-d75ddf4ea80cd8385f8d946bd4f50cacbdf6c0cb.tar.zst
BIP39-d75ddf4ea80cd8385f8d946bd4f50cacbdf6c0cb.zip
Merge pull request #454 from AndreasGassmann/master
Add BIP85 support
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/tests.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index efb395f..9d07edb 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -4960,6 +4960,24 @@ it('Shows split prase cards', function(done) {
4960 }); 4960 });
4961}); 4961});
4962 4962
4963// Pull Request 454 https://github.com/iancoleman/bip39/pull/454
4964// Add BIP85 support
4965it('Show BIP85', function(done) {
4966 var originalPhrase = "install scatter logic circle pencil average fall shoe quantum disease suspect usage";
4967 driver.findElement(By.css('.phrase'))
4968 .sendKeys(originalPhrase);
4969 driver.sleep(generateDelay).then(function() {
4970 driver.findElement(By.css('.showBip85')).click();
4971 driver.findElement(By.css('.showBip85')).isSelected().then(function(isSelected) {
4972 expect(isSelected).toBe(true)
4973 driver.findElement(By.css('#bip85Field')).getAttribute("value").then(function(childMnemonic) {
4974 expect(childMnemonic).toBe('girl mad pet galaxy egg matter matrix prison refuse sense ordinary nose')
4975 done();
4976 })
4977 });
4978 });
4979});
4980
4963// It allows manually specifying the entropy type 4981// It allows manually specifying the entropy type
4964it('Allows entropy type to be manually selected', function(done) { 4982it('Allows entropy type to be manually selected', function(done) {
4965 driver.findElement(By.css('.use-entropy')) 4983 driver.findElement(By.css('.use-entropy'))