<commit_before>var lesspass = require('../lib/index');
var assert = require('assert');

var site = 'lesspass.com';
var login = '<EMAIL>';
var masterPassword = 'password';
var options = {
    counter: 1,
    length: 12,
    lowercase: true,
    uppercase: true,
    numbers: true,
    symbols: true
};

lesspass.encryptLogin(login, masterPassword).then(function (encryptedLogin) {
    var generatedPassword = lesspass.deriveEncryptedLogin(encryptedLogin, site, options);
    assert(generatedPassword, 'azYS7,olOL2]');
});<commit_msg>fix error in node test<commit_after>var lesspass = require('../lib/index');
var assert = require('assert');

var site = 'lesspass.com';
var login = '<EMAIL>';
var masterPassword = 'password';
var options = {
    counter: 1,
    length: 12,
    lowercase: true,
    uppercase: true,
    numbers: true,
    symbols: true
};

var generatedPassword;
lesspass.encryptLogin(login, masterPassword)
    .then(function (encryptedLogin) {
        generatedPassword = lesspass.renderPassword(encryptedLogin, site, options);
        assert.equal(generatedPassword, 'azYS7,olOL2]');
        console.log('generated password ok');
    })
    .catch(e => {
        console.log(e);
    });
{'fraction_non_alphanumeric': 0.1420265780730897, 'fraction_numerical': 0.008305647840531562, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6017563', 'n_tokens_mistral': 374, 'n_tokens_neox': 368, 'n_words': 89}