瀏覽代碼

ensure password are different for two sites

pull/2/head
Guillaume Vincent 9 年之前
父節點
當前提交
502e08c5a4
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. +9
    -0
      tests/lesspass.tests.js

+ 9
- 0
tests/lesspass.tests.js 查看文件

@@ -28,6 +28,15 @@ describe('lesspass', ()=> {
};
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', ()=> {
var master_password = "password";
var old_site_information = {'site_name': 'facebook'};


Loading…
取消
儲存