mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
ObfuscationResult unit test
This commit is contained in:
@@ -28,6 +28,7 @@ describe('JavaScriptObfuscatorInternal', () => {
|
||||
|
||||
it('should link obfuscated code with source map', () => {
|
||||
assert.match(obfuscationResult.obfuscatedCode, new RegExp(`sourceMappingURL=${sourceMapUrl}`));
|
||||
assert.isOk(JSON.parse(obfuscationResult.sourceMap).mappings);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user