Browse Source

ensure password are different for two sites

pull/2/head
Guillaume Vincent 9 years ago
parent
commit
502e08c5a4
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      tests/lesspass.tests.js

+ 9
- 0
tests/lesspass.tests.js View File

@@ -28,6 +28,15 @@ describe('lesspass', ()=> {
}; };
assert.equal(12, lesspass._create_hash(master_password, site_information).length); assert.equal(12, lesspass._create_hash(master_password, site_information).length);
}); });
it('should return two different password if site different', ()=> {
var master_password = "password";
var site_information = {'site_name': 'facebook'};
var site_information2 = {'site_name': 'google'};
assert.notEqual(
lesspass._create_hash(master_password, site_information),
lesspass._create_hash(master_password, site_information2)
);
});
it('should return two different password if counter different', ()=> { it('should return two different password if counter different', ()=> {
var master_password = "password"; var master_password = "password";
var old_site_information = {'site_name': 'facebook'}; var old_site_information = {'site_name': 'facebook'};


Loading…
Cancel
Save