mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Update to typescript 2.6.0
This commit is contained in:
@@ -482,8 +482,7 @@ describe('JavaScriptObfuscatorCLI', function (): void {
|
||||
describe('`--config` option is set but overridden by CLI option', () => {
|
||||
const outputSourceMapPath: string = `${outputFilePath}.map`;
|
||||
|
||||
let isFileExist: boolean,
|
||||
sourceMapObject: any;
|
||||
let isFileExist: boolean;
|
||||
|
||||
before(() => {
|
||||
JavaScriptObfuscator.runCLI([
|
||||
@@ -499,10 +498,9 @@ describe('JavaScriptObfuscatorCLI', function (): void {
|
||||
]);
|
||||
|
||||
try {
|
||||
const content: string = fs.readFileSync(outputSourceMapPath, {encoding: 'utf8'});
|
||||
fs.readFileSync(outputSourceMapPath, {encoding: 'utf8'});
|
||||
|
||||
isFileExist = true;
|
||||
sourceMapObject = JSON.parse(content);
|
||||
} catch (e) {
|
||||
isFileExist = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user