mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
API change, refactoring, readme update, changelog file
This commit is contained in:
@@ -27,8 +27,11 @@ 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);
|
||||
assert.match(
|
||||
obfuscationResult.getObfuscatedCode(),
|
||||
new RegExp(`sourceMappingURL=${sourceMapUrl}`))
|
||||
;
|
||||
assert.isOk(JSON.parse(obfuscationResult.getSourceMap()).mappings);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user