aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/tests.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/tests.ts')
-rw-r--r--server/sonar-web/src/main/js/api/tests.ts38
1 files changed, 0 insertions, 38 deletions
diff --git a/server/sonar-web/src/main/js/api/tests.ts b/server/sonar-web/src/main/js/api/tests.ts
deleted file mode 100644
index 7dbb75c19af..00000000000
--- a/server/sonar-web/src/main/js/api/tests.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2018 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import throwGlobalError from '../app/utils/throwGlobalError';
-import { getJSON } from '../helpers/request';
-
-export function getTests(
- parameters: {
- p?: number;
- ps?: number;
- sourceFileKey?: string;
- sourceFileLineNumber?: number;
- testFileKey: string;
- testId?: string;
- } & T.BranchParameters
-): Promise<{ paging: T.Paging; tests: T.TestCase[] }> {
- return getJSON('/api/tests/list', parameters).catch(throwGlobalError);
-}
-
-export function getCoveredFiles(data: { testId: string }): Promise<T.CoveredFile[]> {
- return getJSON('/api/tests/covered_files', data).then(r => r.files, throwGlobalError);
-}