]> source.dussan.org Git - sonarqube.git/commitdiff
remove unused tests
authorStas Vilchik <vilchiks@gmail.com>
Fri, 18 Sep 2015 14:02:17 +0000 (16:02 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 18 Sep 2015 14:02:48 +0000 (16:02 +0200)
server/sonar-web/test/intern.js
server/sonar-web/test/unit/overview/card.spec.js [deleted file]

index 520d2127a40746dcea872bba4bcb5e4ef96877f2..1c89848442ca3b51660c635407de589b1ab50fd6 100644 (file)
@@ -17,7 +17,6 @@ define(['intern'], function (intern) {
     suites: [
       'test/unit/application.spec',
       'test/unit/issue.spec',
-      'test/unit/overview/card.spec',
       'test/unit/code-with-issue-locations-helper.spec',
       'test/unit/nav/component/component-nav-breadcrumbs.spec'
     ],
diff --git a/server/sonar-web/test/unit/overview/card.spec.js b/server/sonar-web/test/unit/overview/card.spec.js
deleted file mode 100644 (file)
index 148f914..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-define(function (require) {
-  var bdd = require('intern!bdd');
-  var assert = require('intern/chai!assert');
-
-  require('intern/order!build/js/libs/translate.js');
-
-  var React = require('react');
-  var TestUtils = React.addons.TestUtils;
-
-  var Card = require('build/js/apps/overview/card');
-  var Cards = require('build/js/apps/overview/cards');
-
-  bdd.describe('Overview - Card', function () {
-    bdd.it('should render .overview-card', function () {
-      var result = TestUtils.renderIntoDocument(React.createElement(Card, null));
-      assert.ok(TestUtils.findRenderedDOMComponentWithClass(result, 'overview-card'));
-    });
-
-    bdd.it('should render children', function () {
-      var result = TestUtils.renderIntoDocument(React.createElement(Card, null, '!'));
-      assert.equal('!', result.getDOMNode().textContent);
-    });
-  });
-
-  bdd.describe('Overview - Cards', function () {
-    bdd.it('should render .overview-cards', function () {
-      var result = TestUtils.renderIntoDocument(React.createElement(Cards, null));
-      assert.ok(TestUtils.findRenderedDOMComponentWithClass(result, 'overview-cards'));
-    });
-
-    bdd.it('should render children', function () {
-      var result = TestUtils.renderIntoDocument(React.createElement(Cards, null, '!'));
-      assert.equal('!', result.getDOMNode().textContent);
-    });
-  });
-});