[BUGFIX] Jasmine update triggers JS test fails 95/52595/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 25 Apr 2017 08:49:48 +0000 (10:49 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Tue, 25 Apr 2017 09:36:11 +0000 (11:36 +0200)
jasmine js test framework update to 2.6.0 requires a function as
second argument of xdescribe(). Add it.

Change-Id: Ide0df9c3d05d465048d85a5426b4787d08df0cc6
Resolves: #81002
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/52595
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Build/package.json
typo3/sysext/backend/Tests/JavaScript/FormEngineValidationTest.js

index 3db1606..5835aac 100644 (file)
@@ -29,7 +29,7 @@
     "grunt-svgmin": "4.0.0",
     "grunt-ts": "^5.5.1",
     "grunt-tslint": "^3.2.1",
-    "jasmine-core": "^2.4.1",
+    "jasmine-core": "~2.6.0",
     "karma": "^1.3.0",
     "karma-chrome-launcher": "^2.0.0",
     "karma-coverage": "^1.0.0",
index 2fd9e7b..3bbd9f1 100644 (file)
@@ -211,7 +211,7 @@ define(['jquery', 'TYPO3/CMS/Backend/FormEngineValidation'], function($, FormEng
                /**
                 * @test
                 */
-               xdescribe('tests for validateField');
+               xdescribe('tests for validateField', function() {});
 
                /**
                 * @test
@@ -336,22 +336,22 @@ define(['jquery', 'TYPO3/CMS/Backend/FormEngineValidation'], function($, FormEng
                /**
                 * @test
                 */
-               xdescribe('tests for parseDateTime');
+               xdescribe('tests for parseDateTime', function() {});
 
                /**
                 * @test
                 */
-               xdescribe('tests for parseDate');
+               xdescribe('tests for parseDate', function() {});
 
                /**
                 * @test
                 */
-               xdescribe('tests for parseTime');
+               xdescribe('tests for parseTime', function() {});
 
                /**
                 * @test
                 */
-               xdescribe('tests for parseYear');
+               xdescribe('tests for parseYear', function() {});
 
                /**
                 * @test
@@ -408,6 +408,6 @@ define(['jquery', 'TYPO3/CMS/Backend/FormEngineValidation'], function($, FormEng
                /**
                 * @test
                 */
-               xdescribe('tests for split');
+               xdescribe('tests for split', function() {});
        });
 });