Fixed test description and readme

This commit is contained in:
sanex3339
2017-07-29 01:12:58 +03:00
parent a59fda5d7c
commit f6e9fa14e0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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: `[]`
@@ -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);
});
});