diff --git a/test/functional-tests/options/domain-lock/Validation.spec.ts b/test/functional-tests/options/domain-lock/Validation.spec.ts new file mode 100644 index 00000000..76bd37c7 --- /dev/null +++ b/test/functional-tests/options/domain-lock/Validation.spec.ts @@ -0,0 +1,72 @@ +import { assert } from 'chai'; + +import { JavaScriptObfuscator } from '../../../../src/JavaScriptObfuscatorFacade'; + +import { NO_ADDITIONAL_NODES_PRESET } from '../../../../src/options/presets/NoCustomNodes'; + +import { ObfuscationTarget } from '../../../../src/enums/ObfuscationTarget'; + +describe('`domainLock` validation', () => { + describe('IsAllowedForObfuscationTarget', () => { + describe('Variant #1: positive validation', () => { + describe('Variant #1: obfuscation target: `browser`', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + domainLock: ['www.example.com'], + target: ObfuscationTarget.Browser + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `browser`', () => { + assert.doesNotThrow(testFunc); + }); + }); + + describe('Variant #2: obfuscation target: `node` and default value', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + domainLock: [], + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `node` and value is default', () => { + assert.doesNotThrow(testFunc); + }); + }); + }); + + describe('Variant #2: negative validation', () => { + const expectedError: string = 'This option allowed only for obfuscation targets'; + + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + domainLock: ['www.example.com'], + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should not pass validation when obfuscation target is `node` and value is not default', () => { + assert.throws(testFunc, expectedError); + }); + }); + }); +}); diff --git a/test/functional-tests/options/domain-lock/validators/IsAllowedForObfuscationTarget.spec.ts b/test/functional-tests/options/domain-lock/validators/IsAllowedForObfuscationTarget.spec.ts deleted file mode 100644 index 46c18a29..00000000 --- a/test/functional-tests/options/domain-lock/validators/IsAllowedForObfuscationTarget.spec.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { assert } from 'chai'; - -import { JavaScriptObfuscator } from '../../../../../src/JavaScriptObfuscatorFacade'; - -import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../src/options/presets/NoCustomNodes'; - -import { ObfuscationTarget } from '../../../../../src/enums/ObfuscationTarget'; - -describe('`domainLock` IsAllowedForObfuscationTarget validator', () => { - describe('Variant #1: positive validation', () => { - describe('Variant #1: obfuscation target: `browser`', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - domainLock: ['www.example.com'], - target: ObfuscationTarget.Browser - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `browser`', () => { - assert.doesNotThrow(testFunc); - }); - }); - - describe('Variant #2: obfuscation target: `node` and default value', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - domainLock: [], - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `node` and value is default', () => { - assert.doesNotThrow(testFunc); - }); - }); - }); - - describe('Variant #2: negative validation', () => { - const expectedError: string = 'This option allowed only for obfuscation targets'; - - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - domainLock: ['www.example.com'], - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should not pass validation when obfuscation target is `node` and value is not default', () => { - assert.throws(testFunc, expectedError); - }); - }); -}); diff --git a/test/functional-tests/options/source-map-base-url/Validation.spec.ts b/test/functional-tests/options/source-map-base-url/Validation.spec.ts new file mode 100644 index 00000000..de3d7f3c --- /dev/null +++ b/test/functional-tests/options/source-map-base-url/Validation.spec.ts @@ -0,0 +1,72 @@ +import { assert } from 'chai'; + +import { JavaScriptObfuscator } from '../../../../src/JavaScriptObfuscatorFacade'; + +import { NO_ADDITIONAL_NODES_PRESET } from '../../../../src/options/presets/NoCustomNodes'; + +import { ObfuscationTarget } from '../../../../src/enums/ObfuscationTarget'; + +describe('`sourceMapBaseUrl` validation', () => { + describe('IsAllowedForObfuscationTarget', () => { + describe('Variant #1: positive validation', () => { + describe('Variant #1: obfuscation target: `browser`', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapBaseUrl: 'http://www.example.com', + target: ObfuscationTarget.Browser + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `browser`', () => { + assert.doesNotThrow(testFunc); + }); + }); + + describe('Variant #2: obfuscation target: `node` and default value', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapBaseUrl: '', + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `node` and value is default', () => { + assert.doesNotThrow(testFunc); + }); + }); + }); + + describe('Variant #2: negative validation', () => { + const expectedError: string = 'This option allowed only for obfuscation targets'; + + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapBaseUrl: 'http://www.example.com', + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should not pass validation when obfuscation target is `node` and value is not default', () => { + assert.throws(testFunc, expectedError); + }); + }); + }); +}); diff --git a/test/functional-tests/options/source-map-base-url/validators/IsAllowedForObfuscationTarget.spec.ts b/test/functional-tests/options/source-map-base-url/validators/IsAllowedForObfuscationTarget.spec.ts deleted file mode 100644 index 53d18946..00000000 --- a/test/functional-tests/options/source-map-base-url/validators/IsAllowedForObfuscationTarget.spec.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { assert } from 'chai'; - -import { JavaScriptObfuscator } from '../../../../../src/JavaScriptObfuscatorFacade'; - -import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../src/options/presets/NoCustomNodes'; - -import { ObfuscationTarget } from '../../../../../src/enums/ObfuscationTarget'; - -describe('`sourceMapBaseUrl` IsAllowedForObfuscationTarget validator', () => { - describe('Variant #1: positive validation', () => { - describe('Variant #1: obfuscation target: `browser`', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapBaseUrl: 'http://www.example.com', - target: ObfuscationTarget.Browser - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `browser`', () => { - assert.doesNotThrow(testFunc); - }); - }); - - describe('Variant #2: obfuscation target: `node` and default value', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapBaseUrl: '', - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `node` and value is default', () => { - assert.doesNotThrow(testFunc); - }); - }); - }); - - describe('Variant #2: negative validation', () => { - const expectedError: string = 'This option allowed only for obfuscation targets'; - - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapBaseUrl: 'http://www.example.com', - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should not pass validation when obfuscation target is `node` and value is not default', () => { - assert.throws(testFunc, expectedError); - }); - }); -}); diff --git a/test/functional-tests/options/source-map-file-name/Validation.spec.ts b/test/functional-tests/options/source-map-file-name/Validation.spec.ts new file mode 100644 index 00000000..256f649f --- /dev/null +++ b/test/functional-tests/options/source-map-file-name/Validation.spec.ts @@ -0,0 +1,72 @@ +import { assert } from 'chai'; + +import { JavaScriptObfuscator } from '../../../../src/JavaScriptObfuscatorFacade'; + +import { NO_ADDITIONAL_NODES_PRESET } from '../../../../src/options/presets/NoCustomNodes'; + +import { ObfuscationTarget } from '../../../../src/enums/ObfuscationTarget'; + +describe('`sourceMapFileName` validation', () => { + describe('IsAllowedForObfuscationTarget', () => { + describe('Variant #1: positive validation', () => { + describe('Variant #1: obfuscation target: `browser`', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapFileName: 'foo', + target: ObfuscationTarget.Browser + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `browser`', () => { + assert.doesNotThrow(testFunc); + }); + }); + + describe('Variant #2: obfuscation target: `node` and default value', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapFileName: '', + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `node` and value is default', () => { + assert.doesNotThrow(testFunc); + }); + }); + }); + + describe('Variant #2: negative validation', () => { + const expectedError: string = 'This option allowed only for obfuscation targets'; + + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapFileName: 'foo', + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should not pass validation when obfuscation target is `node` and value is not default', () => { + assert.throws(testFunc, expectedError); + }); + }); + }); +}); diff --git a/test/functional-tests/options/source-map-file-name/validators/IsAllowedForObfuscationTarget.spec.ts b/test/functional-tests/options/source-map-file-name/validators/IsAllowedForObfuscationTarget.spec.ts deleted file mode 100644 index 859ee163..00000000 --- a/test/functional-tests/options/source-map-file-name/validators/IsAllowedForObfuscationTarget.spec.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { assert } from 'chai'; - -import { JavaScriptObfuscator } from '../../../../../src/JavaScriptObfuscatorFacade'; - -import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../src/options/presets/NoCustomNodes'; - -import { ObfuscationTarget } from '../../../../../src/enums/ObfuscationTarget'; - -describe('`sourceMapFileName` IsAllowedForObfuscationTarget validator', () => { - describe('Variant #1: positive validation', () => { - describe('Variant #1: obfuscation target: `browser`', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapFileName: 'foo', - target: ObfuscationTarget.Browser - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `browser`', () => { - assert.doesNotThrow(testFunc); - }); - }); - - describe('Variant #2: obfuscation target: `node` and default value', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapFileName: '', - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `node` and value is default', () => { - assert.doesNotThrow(testFunc); - }); - }); - }); - - describe('Variant #2: negative validation', () => { - const expectedError: string = 'This option allowed only for obfuscation targets'; - - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapFileName: 'foo', - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should not pass validation when obfuscation target is `node` and value is not default', () => { - assert.throws(testFunc, expectedError); - }); - }); -}); diff --git a/test/functional-tests/options/source-map-mode/Validation.spec.ts b/test/functional-tests/options/source-map-mode/Validation.spec.ts new file mode 100644 index 00000000..e15acbd6 --- /dev/null +++ b/test/functional-tests/options/source-map-mode/Validation.spec.ts @@ -0,0 +1,73 @@ +import { assert } from 'chai'; + +import { JavaScriptObfuscator } from '../../../../src/JavaScriptObfuscatorFacade'; + +import { NO_ADDITIONAL_NODES_PRESET } from '../../../../src/options/presets/NoCustomNodes'; + +import { ObfuscationTarget } from '../../../../src/enums/ObfuscationTarget'; +import { SourceMapMode } from '../../../../src/enums/source-map/SourceMapMode'; + +describe('`sourceMapMode` validation', () => { + describe('IsAllowedForObfuscationTarget', () => { + describe('Variant #1: positive validation', () => { + describe('Variant #1: obfuscation target: `browser`', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapMode: SourceMapMode.Inline, + target: ObfuscationTarget.Browser + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `browser`', () => { + assert.doesNotThrow(testFunc); + }); + }); + + describe('Variant #2: obfuscation target: `node` and default value', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapMode: SourceMapMode.Separate, + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `node` and value is default', () => { + assert.doesNotThrow(testFunc); + }); + }); + }); + + describe('Variant #2: negative validation', () => { + const expectedError: string = 'This option allowed only for obfuscation targets'; + + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMapMode: SourceMapMode.Inline, + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should not pass validation when obfuscation target is `node` and value is not default', () => { + assert.throws(testFunc, expectedError); + }); + }); + }); +}); diff --git a/test/functional-tests/options/source-map-mode/validators/IsAllowedForObfuscationTarget.spec.ts b/test/functional-tests/options/source-map-mode/validators/IsAllowedForObfuscationTarget.spec.ts deleted file mode 100644 index eb785cff..00000000 --- a/test/functional-tests/options/source-map-mode/validators/IsAllowedForObfuscationTarget.spec.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { assert } from 'chai'; - -import { JavaScriptObfuscator } from '../../../../../src/JavaScriptObfuscatorFacade'; - -import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../src/options/presets/NoCustomNodes'; - -import { ObfuscationTarget } from '../../../../../src/enums/ObfuscationTarget'; -import { SourceMapMode } from '../../../../../src/enums/source-map/SourceMapMode'; - -describe('`sourceMapMode` IsAllowedForObfuscationTarget validator', () => { - describe('Variant #1: positive validation', () => { - describe('Variant #1: obfuscation target: `browser`', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapMode: SourceMapMode.Inline, - target: ObfuscationTarget.Browser - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `browser`', () => { - assert.doesNotThrow(testFunc); - }); - }); - - describe('Variant #2: obfuscation target: `node` and default value', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapMode: SourceMapMode.Separate, - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `node` and value is default', () => { - assert.doesNotThrow(testFunc); - }); - }); - }); - - describe('Variant #2: negative validation', () => { - const expectedError: string = 'This option allowed only for obfuscation targets'; - - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMapMode: SourceMapMode.Inline, - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should not pass validation when obfuscation target is `node` and value is not default', () => { - assert.throws(testFunc, expectedError); - }); - }); -}); diff --git a/test/functional-tests/options/source-map/Validation.spec.ts b/test/functional-tests/options/source-map/Validation.spec.ts new file mode 100644 index 00000000..8b1e06be --- /dev/null +++ b/test/functional-tests/options/source-map/Validation.spec.ts @@ -0,0 +1,72 @@ +import { assert } from 'chai'; + +import { JavaScriptObfuscator } from '../../../../src/JavaScriptObfuscatorFacade'; + +import { NO_ADDITIONAL_NODES_PRESET } from '../../../../src/options/presets/NoCustomNodes'; + +import { ObfuscationTarget } from '../../../../src/enums/ObfuscationTarget'; + +describe('`sourceMap` validation', () => { + describe('IsAllowedForObfuscationTarget', () => { + describe('Variant #1: positive validation', () => { + describe('Variant #1: obfuscation target: `browser`', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMap: true, + target: ObfuscationTarget.Browser + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `browser`', () => { + assert.doesNotThrow(testFunc); + }); + }); + + describe('Variant #2: obfuscation target: `node` and default value', () => { + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMap: false, + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should pass validation when obfuscation target is `node` and value is default', () => { + assert.doesNotThrow(testFunc); + }); + }); + }); + + describe('Variant #2: negative validation', () => { + const expectedError: string = 'This option allowed only for obfuscation targets'; + + let testFunc: () => string; + + beforeEach(() => { + testFunc = () => JavaScriptObfuscator.obfuscate( + '', + { + ...NO_ADDITIONAL_NODES_PRESET, + sourceMap: true, + target: ObfuscationTarget.Node + } + ).getObfuscatedCode(); + }); + + it('should not pass validation when obfuscation target is `node` and value is not default', () => { + assert.throws(testFunc, expectedError); + }); + }); + }); +}); diff --git a/test/functional-tests/options/source-map/validators/IsAllowedForObfuscationTarget.spec.ts b/test/functional-tests/options/source-map/validators/IsAllowedForObfuscationTarget.spec.ts deleted file mode 100644 index f22fefc9..00000000 --- a/test/functional-tests/options/source-map/validators/IsAllowedForObfuscationTarget.spec.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { assert } from 'chai'; - -import { JavaScriptObfuscator } from '../../../../../src/JavaScriptObfuscatorFacade'; - -import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../src/options/presets/NoCustomNodes'; - -import { ObfuscationTarget } from '../../../../../src/enums/ObfuscationTarget'; - -describe('`sourceMap` IsAllowedForObfuscationTarget validator', () => { - describe('Variant #1: positive validation', () => { - describe('Variant #1: obfuscation target: `browser`', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMap: true, - target: ObfuscationTarget.Browser - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `browser`', () => { - assert.doesNotThrow(testFunc); - }); - }); - - describe('Variant #2: obfuscation target: `node` and default value', () => { - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMap: false, - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should pass validation when obfuscation target is `node` and value is default', () => { - assert.doesNotThrow(testFunc); - }); - }); - }); - - describe('Variant #2: negative validation', () => { - const expectedError: string = 'This option allowed only for obfuscation targets'; - - let testFunc: () => string; - - beforeEach(() => { - testFunc = () => JavaScriptObfuscator.obfuscate( - '', - { - ...NO_ADDITIONAL_NODES_PRESET, - sourceMap: true, - target: ObfuscationTarget.Node - } - ).getObfuscatedCode(); - }); - - it('should not pass validation when obfuscation target is `node` and value is not default', () => { - assert.throws(testFunc, expectedError); - }); - }); -}); diff --git a/test/index.spec.ts b/test/index.spec.ts index f0dd95d1..77386c28 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -89,11 +89,11 @@ import './functional-tests/node-transformers/preparing-transformers/obfuscating- import './functional-tests/node-transformers/preparing-transformers/obfuscating-guards/conditional-comment-obfuscating-guard/ConditionalCommentObfuscatingGuard.spec'; import './functional-tests/node-transformers/preparing-transformers/obfuscating-guards/reserved-string-obfuscating-guard/ReservedStringObfuscatingGuard.spec'; import './functional-tests/options/OptionsNormalizer.spec'; -import './functional-tests/options/domain-lock/validators/IsAllowedForObfuscationTarget.spec'; -import './functional-tests/options/source-map/validators/IsAllowedForObfuscationTarget.spec'; -import './functional-tests/options/source-map-base-url/validators/IsAllowedForObfuscationTarget.spec'; -import './functional-tests/options/source-map-file-name/validators/IsAllowedForObfuscationTarget.spec'; -import './functional-tests/options/source-map-mode/validators/IsAllowedForObfuscationTarget.spec'; +import './functional-tests/options/domain-lock/Validation.spec'; +import './functional-tests/options/source-map/Validation.spec'; +import './functional-tests/options/source-map-base-url/Validation.spec'; +import './functional-tests/options/source-map-file-name/Validation.spec'; +import './functional-tests/options/source-map-mode/Validation.spec'; import './functional-tests/storages/string-array-storage/StringArrayStorage.spec'; import './functional-tests/templates/debug-protection-nodes/DebugProtectionFunctionCallTemplate.spec'; import './functional-tests/templates/domain-lock-nodes/DomainLockNodeTemplate.spec';