Browse Source

Enable `deadCodeInjection` option for runtime test

sanex3339 8 years ago
parent
commit
98ba9a8761
1 changed files with 4 additions and 3 deletions
  1. 4 3
      test/runtime-tests/JavaScriptObfuscatorRuntime.spec.ts

+ 4 - 3
test/runtime-tests/JavaScriptObfuscatorRuntime.spec.ts

@@ -13,10 +13,11 @@ describe('JavaScriptObfuscator runtime eval', () => {
         const obfuscationResult1: IObfuscationResult = JavaScriptObfuscator.obfuscate(
             code,
             {
-                selfDefending: true,
+                controlFlowFlattening: true,
+                deadCodeInjection: true,
                 debugProtection: true,
-                stringArrayEncoding: 'rc4',
-                controlFlowFlattening: true
+                selfDefending: true,
+                stringArrayEncoding: 'rc4'
             }
         );