API change, refactoring, readme update, changelog file

This commit is contained in:
sanex3339
2016-07-10 20:33:50 +03:00
parent 38b2647c45
commit 187d52c733
17 changed files with 189 additions and 226 deletions
@@ -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);
});
});
});