diff --git a/README.md b/README.md index 2bea3424..3275a074 100644 --- a/README.md +++ b/README.md @@ -500,10 +500,10 @@ Enables mangling of variable names. ### `renameGlobals` Type: `boolean` Default: `false` -Enables obfuscation of global variable and function names **with declaration**. - ##### :warning: this option can break your code. Enable it only if you know what it does! +Enables obfuscation of global variable and function names **with declaration**. + ### `reservedNames` Type: `string[]` Default: `[]` diff --git a/test/functional-tests/node-transformers/obfuscating-transformers/function-declaration-transformer/FunctionDeclarationTransformer.spec.ts b/test/functional-tests/node-transformers/obfuscating-transformers/function-declaration-transformer/FunctionDeclarationTransformer.spec.ts index 4c79793b..0fa1826b 100644 --- a/test/functional-tests/node-transformers/obfuscating-transformers/function-declaration-transformer/FunctionDeclarationTransformer.spec.ts +++ b/test/functional-tests/node-transformers/obfuscating-transformers/function-declaration-transformer/FunctionDeclarationTransformer.spec.ts @@ -85,11 +85,11 @@ describe('FunctionDeclarationTransformer', () => { obfuscatedCode = obfuscationResult.getObfuscatedCode(); }); - it('match #1: shouldn\'t transform function name', () => { + it('match #1: should transform function name', () => { assert.match(obfuscatedCode, functionNameIdentifierRegExp); }); - it('match #2: shouldn\'t transform function name', () => { + it('match #2: should transform function name', () => { assert.match(obfuscatedCode, functionCallIdentifierRegExp); }); });