Update to typescript 2.6.0

This commit is contained in:
sanex3339
2017-10-24 10:04:42 +03:00
parent cda333eefe
commit 815b17dfb9
40 changed files with 552 additions and 544 deletions
@@ -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;
}