sanex3339
2018-03-02 01:00:33 +03:00
parent b971dc6e56
commit 0c088af218
9 changed files with 48 additions and 23 deletions
@@ -593,6 +593,23 @@ describe('JavaScriptObfuscator', () => {
});
});
describe('parse module', () => {
const regExp: RegExp = /var *test *= *0x1/;
let obfuscatedCode: string;
beforeEach(() => {
const code: string = readFileAsString(__dirname + '/fixtures/parse-module.js');
const obfuscationResult: IObfuscationResult = JavaScriptObfuscator.obfuscate(code);
obfuscatedCode = obfuscationResult.getObfuscatedCode();
});
it('should correctly obfuscate a module', () => {
assert.match(obfuscatedCode, regExp);
});
});
describe('3.5k variables', function () {
this.timeout(200000);