Skip to content

Commit

Permalink
Test the dictionaries in all test files
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterWigboldus committed Nov 10, 2017
1 parent c17e8de commit 7770cde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/example.js
@@ -1,5 +1,6 @@
var assert = require('assert');
var StrongPassword = require('../js/is_strong_password.js');
var dictionaries = 'node_modules/typo-js/dictionaries';

describe('Check the validator with node.', function() {
var noPassword = new StrongPassword();
Expand Down Expand Up @@ -134,7 +135,8 @@ describe('Check the validator with node.', function() {
var weakPasswordValidation10 = new StrongPassword({
password: 'My 1st Password!',
locale: 'en_US',
minimumWords: 3
minimumWords: 3,
dictionaries: dictionaries
});

it('Check if the password is weak, test 10.', function() {
Expand Down

0 comments on commit 7770cde

Please sign in to comment.