|
@@ -24,6 +24,7 @@ describe('OptionsNormalizer', () => {
|
|
optionsPreset1 = Object.assign({}, DEFAULT_PRESET, {
|
|
optionsPreset1 = Object.assign({}, DEFAULT_PRESET, {
|
|
compact: false,
|
|
compact: false,
|
|
rotateUnicodeArray: true,
|
|
rotateUnicodeArray: true,
|
|
|
|
+ sourceMapBaseUrl: 'http://localhost:9000',
|
|
unicodeArray: false,
|
|
unicodeArray: false,
|
|
unicodeArrayThreshold: 0.5,
|
|
unicodeArrayThreshold: 0.5,
|
|
wrapUnicodeArrayCalls: true
|
|
wrapUnicodeArrayCalls: true
|
|
@@ -31,14 +32,14 @@ describe('OptionsNormalizer', () => {
|
|
optionsPreset2 = Object.assign({}, DEFAULT_PRESET, {
|
|
optionsPreset2 = Object.assign({}, DEFAULT_PRESET, {
|
|
rotateUnicodeArray: true,
|
|
rotateUnicodeArray: true,
|
|
sourceMapBaseUrl: 'http://localhost:9000',
|
|
sourceMapBaseUrl: 'http://localhost:9000',
|
|
- sourceMapFileName: 'outputSourceMapName',
|
|
|
|
|
|
+ sourceMapFileName: '//outputSourceMapName',
|
|
unicodeArray: true,
|
|
unicodeArray: true,
|
|
unicodeArrayThreshold: 0,
|
|
unicodeArrayThreshold: 0,
|
|
wrapUnicodeArrayCalls: true
|
|
wrapUnicodeArrayCalls: true
|
|
});
|
|
});
|
|
optionsPreset3 = Object.assign({}, DEFAULT_PRESET, {
|
|
optionsPreset3 = Object.assign({}, DEFAULT_PRESET, {
|
|
domainLock: ['//localhost:9000', 'https://google.ru/abc?cde=fgh'],
|
|
domainLock: ['//localhost:9000', 'https://google.ru/abc?cde=fgh'],
|
|
- sourceMapFileName: 'outputSourceMapName.map',
|
|
|
|
|
|
+ sourceMapFileName: '/outputSourceMapName.map',
|
|
unicodeArray: true,
|
|
unicodeArray: true,
|
|
encodeUnicodeLiterals: true,
|
|
encodeUnicodeLiterals: true,
|
|
wrapUnicodeArrayCalls: false
|
|
wrapUnicodeArrayCalls: false
|
|
@@ -47,6 +48,7 @@ describe('OptionsNormalizer', () => {
|
|
expectedOptionsPreset1 = Object.assign({}, DEFAULT_PRESET, {
|
|
expectedOptionsPreset1 = Object.assign({}, DEFAULT_PRESET, {
|
|
compact: true,
|
|
compact: true,
|
|
rotateUnicodeArray: false,
|
|
rotateUnicodeArray: false,
|
|
|
|
+ sourceMapBaseUrl: '',
|
|
unicodeArray: false,
|
|
unicodeArray: false,
|
|
unicodeArrayThreshold: 0,
|
|
unicodeArrayThreshold: 0,
|
|
wrapUnicodeArrayCalls: false
|
|
wrapUnicodeArrayCalls: false
|