summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/test
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-11 15:36:19 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-11 15:36:19 +0200
commit32dbf231fdeaf45cf359201fb6470df902e1babf (patch)
treeb6bef93dc031cb18cc805d4122b54db767379006 /server/sonar-web/test
parentd10d21c9f178d5ccad5884695a2975c970c875c8 (diff)
downloadsonarqube-32dbf231fdeaf45cf359201fb6470df902e1babf.tar.gz
sonarqube-32dbf231fdeaf45cf359201fb6470df902e1babf.zip
fix execution of web tests
Diffstat (limited to 'server/sonar-web/test')
-rw-r--r--server/sonar-web/test/intern.js6
-rw-r--r--server/sonar-web/test/unit/issue.spec.js12
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 () {