mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Utility classes with state now are non-static
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user