JavaScriptObfuscatorCLI: additional assets for source map file content

This commit is contained in:
sanex3339
2016-07-21 17:45:05 +03:00
parent b9bd8b5cdf
commit 580df6dfa1
@@ -103,6 +103,13 @@ describe('JavaScriptObfuscatorCLI', function (): void {
]);
assert.equal(fs.existsSync(outputSourceMapPath), true);
const content: string = fs.readFileSync(outputSourceMapPath, { encoding: 'utf8' }),
sourceMap: any = JSON.parse(content);
assert.property(sourceMap, 'version');
assert.property(sourceMap, 'sources');
assert.property(sourceMap, 'names');
});
afterEach(() => {