]> source.dussan.org Git - sonarqube.git/commitdiff
fix execution of web tests
authorStas Vilchik <vilchiks@gmail.com>
Fri, 11 Sep 2015 13:36:19 +0000 (15:36 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 11 Sep 2015 13:36:19 +0000 (15:36 +0200)
server/sonar-web/test/intern.js
server/sonar-web/test/unit/issue.spec.js

index 520d2127a40746dcea872bba4bcb5e4ef96877f2..7a4f02b6179bd6958222b3f986a06c58a16adad5 100644 (file)
@@ -8,12 +8,6 @@ define(['intern'], function (intern) {
 
     defaultTimeout: 60 * 1000,
 
-    reporters: [
-      { id: 'Runner' },
-      { id: 'Lcov' },
-      { id: 'LcovHtml', directory: 'target/web-tests' }
-    ],
-
     suites: [
       'test/unit/application.spec',
       'test/unit/issue.spec',
index e0e7c45f730655136b5f6ac4fa848225308967af..96e4bf0a8d91c953afccdc5556dd65db680d1f2c 100644 (file)
@@ -63,16 +63,10 @@ define(function (require) {
       assert.notOk(result.textRange);
     });
 
-    bdd.it('should unset `secondaryLocations` of a closed issue', function () {
+    bdd.it('should unset `flows` of a closed issue', function () {
       var issue = new Issue();
-      var result = issue.parse({ issue: { status: 'CLOSED', secondaryLocations: [1, 2, 3] } });
-      assert.deepEqual(result.secondaryLocations, []);
-    });
-
-    bdd.it('should unset `executionFlows` of a closed issue', function () {
-      var issue = new Issue();
-      var result = issue.parse({ issue: { status: 'CLOSED', executionFlows: [1, 2, 3] } });
-      assert.deepEqual(result.executionFlows, []);
+      var result = issue.parse({ issue: { status: 'CLOSED', flows: [1, 2, 3] } });
+      assert.deepEqual(result.flows, []);
     });
 
     bdd.describe('Actions', function () {