From ca976aa99b0d4e08b83c36824046d875227dd9a3 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 5 Oct 2016 11:23:29 +1100 Subject: [PATCH] Test default word length is 15 --- tests.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests.js b/tests.js index 2384b42..287c480 100644 --- 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 -- 2.41.0