From 32dbf231fdeaf45cf359201fb6470df902e1babf Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 11 Sep 2015 15:36:19 +0200 Subject: [PATCH] fix execution of web tests --- server/sonar-web/test/intern.js | 6 ------ server/sonar-web/test/unit/issue.spec.js | 12 +++--------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/server/sonar-web/test/intern.js b/server/sonar-web/test/intern.js index 520d2127a40..7a4f02b6179 100644 --- a/server/sonar-web/test/intern.js +++ b/server/sonar-web/test/intern.js @@ -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', diff --git a/server/sonar-web/test/unit/issue.spec.js b/server/sonar-web/test/unit/issue.spec.js index e0e7c45f730..96e4bf0a8d9 100644 --- a/server/sonar-web/test/unit/issue.spec.js +++ b/server/sonar-web/test/unit/issue.spec.js @@ -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 () { -- 2.39.5