Browse Source

Fixed test description and readme

sanex3339 7 years ago
parent
commit
f6e9fa14e0

+ 2 - 2
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: `[]`
 

+ 2 - 2
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);
                 });
             });