mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Tests structure reorganized
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { assert } from 'chai';
|
||||
|
||||
import { readFileAsString } from '../helpers/readFileAsString';
|
||||
|
||||
import { IObfuscationResult } from '../../src/interfaces/IObfuscationResult';
|
||||
|
||||
import { readFileAsString } from '../helpers/readFileAsString';
|
||||
|
||||
import { JavaScriptObfuscator } from '../../src/JavaScriptObfuscator';
|
||||
|
||||
describe('JavaScriptObfuscator runtime eval', () => {
|
||||
it('should obfuscate code without any runtime errors after obfuscation: variant #1 sha256', () => {
|
||||
const code: string = readFileAsString('./test/fixtures/runtime/sha256.js');
|
||||
const code: string = readFileAsString(__dirname + '/fixtures/sha256.js');
|
||||
|
||||
const obfuscationResult1: IObfuscationResult = JavaScriptObfuscator.obfuscate(
|
||||
code,
|
||||
|
||||
Reference in New Issue
Block a user