1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

More tests (#395)

* Test UtilsService.newGuid

* Replace UtilsService.extendObject with Object.assign.

* Test getBrowser.

* Replace var with const.
This commit is contained in:
Oscar Hinton
2017-11-25 00:14:03 +01:00
committed by Kyle Spearrin
parent 2b042da237
commit a45f2c2fd7
3 changed files with 60 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ const MaxPasswordsInHistory = 100;
export default class PasswordGenerationService {
static generatePassword(options: any): string {
// overload defaults with given options
const o = UtilsService.extendObject({}, DefaultOptions, options);
const o = Object.assign({}, DefaultOptions, options);
// sanitize
if (o.uppercase && o.minUppercase < 0) {