aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-12-19 15:14:23 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-12-19 15:14:23 +0100
commitaa0feb8c0f66818332842372fad3fae843cb5140 (patch)
tree0a59fa4e7a7b310d0293fda3d2da8943fd5447e8 /server
parentdb1e2fd90a7cbbb8b3a3dd0a0c657f4858387b19 (diff)
downloadsonarqube-aa0feb8c0f66818332842372fad3fae843cb5140.tar.gz
sonarqube-aa0feb8c0f66818332842372fad3fae843cb5140.zip
add "validate" script
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/package.json3
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.js1
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json
index 7f343115d4b..09f2857018f 100644
--- a/server/sonar-web/package.json
+++ b/server/sonar-web/package.json
@@ -94,7 +94,8 @@
"test": "node scripts/test.js",
"coverage": "npm test -- --coverage",
"lint": "eslint src/main/js",
- "typecheck": "flow src/main/js"
+ "typecheck": "flow src/main/js",
+ "validate": "eslint src/main/js && flow check src/main/js && CI=1 node scripts/test.js"
},
"engines": {
"node": ">=4"
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.js b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.js
index 35759789ac4..4447249a70b 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/Changelog-test.js
@@ -19,7 +19,6 @@
*/
import { shallow } from 'enzyme';
import React from 'react';
-import { Link } from 'react-router';
import Changelog from '../Changelog';
import ChangesList from '../ChangesList';