]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Test default word length is 15
authorIan Coleman <coleman.ian@gmail.com>
Wed, 5 Oct 2016 00:23:29 +0000 (11:23 +1100)
committerIan Coleman <coleman.ian@gmail.com>
Wed, 5 Oct 2016 00:23:29 +0000 (11:23 +1100)
tests.js

index 2384b4279b9386b3e5e5f5b36a51f93869db6eac..287c480ecae45054aa704207160e9042f8a73e79 100644 (file)
--- a/tests.js
+++ b/tests.js
@@ -1567,6 +1567,20 @@ page.open(url, function(status) {
 
 // Github Issue 11: Default word length is 15
 // https://github.com/dcpos/bip39/issues/11
+function() {
+page.open(url, function(status) {
+    // get the word length
+    var defaultLength = page.evaluate(function() {
+        return $(".strength").val();
+    });
+    if (defaultLength != 15) {
+        console.log("Default word length is not 15");
+        fail();
+    }
+    next();
+});
+},
+
 
 // Github Issue 12: Generate more rows with private keys hidden
 // https://github.com/dcpos/bip39/issues/12