ObfuscationResult unit test

This commit is contained in:
sanex3339
2016-07-09 19:20:59 +03:00
parent 198c71a981
commit 38b2647c45
3 changed files with 35 additions and 4 deletions
@@ -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);
});
});
});