diff --git a/test/JavaScriptObfuscator.spec.ts b/test/JavaScriptObfuscator.spec.ts index e6506cfd..fdb5a288 100644 --- a/test/JavaScriptObfuscator.spec.ts +++ b/test/JavaScriptObfuscator.spec.ts @@ -4,10 +4,6 @@ import { NO_CUSTOM_NODES_PRESET } from "../src/preset-options/NoCustomNodesPrese const assert: Chai.AssertStatic = require('chai').assert; -beforeEach(() => { - console.log(Object.assign); -}); - describe('JavaScriptObfuscator', () => { describe('obfuscate (sourceCode: string, customOptions?: IOptionsPreset): string', () => { it('should obfuscate simple code with variable inside global scope', () => { diff --git a/test/OptionsNormalizer.spec.ts b/test/OptionsNormalizer.spec.ts index 92c0ecae..194d7946 100644 --- a/test/OptionsNormalizer.spec.ts +++ b/test/OptionsNormalizer.spec.ts @@ -8,18 +8,21 @@ const assert: Chai.AssertStatic = require('chai').assert; describe('OptionsNormalizer', () => { describe('normalizeOptionsPreset (options: IOptionsPreset): IOptionsPreset', () => { - let optionsPreset1: IOptionsPreset = Object.assign({}, DEFAULT_PRESET, { + let optionsPreset1: IOptionsPreset, + optionsPreset2: IOptionsPreset; + + beforeEach(() => { + optionsPreset1 = Object.assign({}, DEFAULT_PRESET, { compact: false, rotateUnicodeArray: true, unicodeArray: false, unicodeArrayThreshold: 0.5, wrapUnicodeArrayCalls: true - - }), - optionsPreset2: IOptionsPreset = Object.assign({}, DEFAULT_PRESET, { - unicodeArrayThreshold: 2 - }); + optionsPreset2 = Object.assign({}, DEFAULT_PRESET, { + unicodeArrayThreshold: 2 + }); + }); it('should normalize options preset', () => { assert.deepEqual(