Utility classes with state now are non-static

This commit is contained in:
sanex3339
2017-06-27 00:49:19 +03:00
parent 894c90863a
commit d21c5afa8a
93 changed files with 1699 additions and 999 deletions
@@ -8,14 +8,8 @@ import { NO_CUSTOM_NODES_PRESET } from '../../../src/options/presets/NoCustomNod
import { readFileAsString } from '../../helpers/readFileAsString';
import { RandomGeneratorUtils } from '../../../src/utils/RandomGeneratorUtils';
describe('JavaScriptObfuscator', () => {
describe('obfuscate (sourceCode: string, customOptions?: IObfuscatorOptions): IObfuscationResult', () => {
beforeEach(() => {
RandomGeneratorUtils.initializeRandomGenerator(0);
});
describe('correct source code', () => {
let obfuscatedCode: string,
sourceMap: string;
@@ -429,9 +423,5 @@ describe('JavaScriptObfuscator', () => {
assert.match(obfuscatedCode, regExp);
});
});
afterEach(() => {
RandomGeneratorUtils.initializeRandomGenerator(0);
});
});
});