aboutsummaryrefslogtreecommitdiff
path: root/tests/spec
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec')
-rw-r--r--tests/spec/tests.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index f10f7a4..4f774e8 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -2473,11 +2473,11 @@ it('Shows error for hardened addresses with xpub root key', function(done) {
2473 }); 2473 });
2474}); 2474});
2475 2475
2476// Litecoin uses xprv by default, and can optionally be set to ltpv 2476// Litecoin uses ltub by default, and can optionally be set to xprv
2477// github issue 96 2477// github issue 96
2478// https://github.com/iancoleman/bip39/issues/96 2478// https://github.com/iancoleman/bip39/issues/96
2479// Issue with extended keys on Litecoin 2479// Issue with extended keys on Litecoin
2480it('Uses xprv by default for litecoin, but can be set to ltpv', function(done) { 2480it('Uses ltub by default for litecoin, but can be set to xprv', function(done) {
2481 driver.findElement(By.css('.phrase')) 2481 driver.findElement(By.css('.phrase'))
2482 .sendKeys("abandon abandon ability"); 2482 .sendKeys("abandon abandon ability");
2483 selectNetwork("LTC - Litecoin"); 2483 selectNetwork("LTC - Litecoin");
@@ -2486,17 +2486,17 @@ it('Uses xprv by default for litecoin, but can be set to ltpv', function(done) {
2486 driver.findElement(By.css('.root-key')) 2486 driver.findElement(By.css('.root-key'))
2487 .getAttribute("value") 2487 .getAttribute("value")
2488 .then(function(rootKey) { 2488 .then(function(rootKey) {
2489 expect(rootKey).toBe("xprv9s21ZrQH143K2jkGDCeTLgRewT9F2pH5JZs2zDmmjXes34geVnFiuNa8KTvY5WoYvdn4Ag6oYRoB6cXtc43NgJAEqDXf51xPm6fhiMCKwpi"); 2489 expect(rootKey).toBe("Ltpv71G8qDifUiNesiPqf6h5V6eQ8ic77oxQiYtawiACjBEx3sTXNR2HGDGnHETYxESjqkMLFBkKhWVq67ey1B2MKQXannUqNy1RZVHbmrEjnEU");
2490 // set litecoin to use ltub 2490 // set litecoin to use ltub
2491 driver.executeScript(function() { 2491 driver.executeScript(function() {
2492 $(".litecoin-use-ltub").prop("checked", true); 2492 $(".litecoin-use-ltub").prop("checked", false);
2493 $(".litecoin-use-ltub").trigger("change"); 2493 $(".litecoin-use-ltub").trigger("change");
2494 }); 2494 });
2495 driver.sleep(generateDelay).then(function() { 2495 driver.sleep(generateDelay).then(function() {
2496 driver.findElement(By.css('.root-key')) 2496 driver.findElement(By.css('.root-key'))
2497 .getAttribute("value") 2497 .getAttribute("value")
2498 .then(function(rootKey) { 2498 .then(function(rootKey) {
2499 expect(rootKey).toBe("Ltpv71G8qDifUiNesiPqf6h5V6eQ8ic77oxQiYtawiACjBEx3sTXNR2HGDGnHETYxESjqkMLFBkKhWVq67ey1B2MKQXannUqNy1RZVHbmrEjnEU"); 2499 expect(rootKey).toBe("xprv9s21ZrQH143K2jkGDCeTLgRewT9F2pH5JZs2zDmmjXes34geVnFiuNa8KTvY5WoYvdn4Ag6oYRoB6cXtc43NgJAEqDXf51xPm6fhiMCKwpi");
2500 done(); 2500 done();
2501 }); 2501 });
2502 }) 2502 })