瀏覽代碼

Changed eval `hello-world` test

sanex 4 年之前
父節點
當前提交
b2297df287

+ 1 - 1
test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts

@@ -873,7 +873,7 @@ describe('JavaScriptObfuscator', () => {
             this.timeout(20000);
 
             const samplesCount: number = 100;
-            const expectedEvaluationResult: string = 'aaabbbcccdddeee';
+            const expectedEvaluationResult: string = 'Hello World';
             let isEvaluationSuccessful: boolean = true;
 
             before(() => {

+ 3 - 10
test/functional-tests/javascript-obfuscator/fixtures/eval-hello-world.js

@@ -1,11 +1,4 @@
-function func () {
-    var foo = 'aaa';
-    var bar = 'bbb';
-    var baz = 'ccc';
-    var bark = 'ddd';
-    var hawk = 'eee';
-
-    return foo + bar + baz + bark + hawk;
+function helloWorld() {
+    return 'Hello World';
 }
-
-func();
+helloWorld();