mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
JavaScriptObfuscatorCLI: additional assets for source map file content
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user