mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fixed test description and readme
This commit is contained in:
@@ -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
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user