diff options
Diffstat (limited to 'spec/frontend/prometheus_metrics/prometheus_metrics_spec.js')
-rw-r--r-- | spec/frontend/prometheus_metrics/prometheus_metrics_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/prometheus_metrics/prometheus_metrics_spec.js b/spec/frontend/prometheus_metrics/prometheus_metrics_spec.js index a65cbe1a47a..45654d6a2eb 100644 --- a/spec/frontend/prometheus_metrics/prometheus_metrics_spec.js +++ b/spec/frontend/prometheus_metrics/prometheus_metrics_spec.js @@ -2,6 +2,7 @@ import MockAdapter from 'axios-mock-adapter'; import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import waitForPromises from 'helpers/wait_for_promises'; import axios from '~/lib/utils/axios_utils'; +import { HTTP_STATUS_OK } from '~/lib/utils/http_status'; import PANEL_STATE from '~/prometheus_metrics/constants'; import PrometheusMetrics from '~/prometheus_metrics/prometheus_metrics'; import { metrics2 as metrics, missingVarMetrics } from './mock_data'; @@ -116,7 +117,7 @@ describe('PrometheusMetrics', () => { let mock; function mockSuccess() { - mock.onGet(prometheusMetrics.activeMetricsEndpoint).reply(200, { + mock.onGet(prometheusMetrics.activeMetricsEndpoint).reply(HTTP_STATUS_OK, { data: metrics, success: true, }); |