From 9b629cd5a68b1cc0d422addc1b745d19e1107ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 6 Jun 2017 14:28:21 +0200 Subject: [PATCH] dashboard_history: fixed history srv unit tests --- public/app/features/dashboard/specs/history_srv_specs.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/features/dashboard/specs/history_srv_specs.ts b/public/app/features/dashboard/specs/history_srv_specs.ts index 18a114490f9..2d01f323d35 100644 --- a/public/app/features/dashboard/specs/history_srv_specs.ts +++ b/public/app/features/dashboard/specs/history_srv_specs.ts @@ -15,9 +15,9 @@ describe('historySrv', function() { beforeEach(angularMocks.module('grafana.services')); beforeEach(angularMocks.inject(function($httpBackend) { ctx.$httpBackend = $httpBackend; - $httpBackend.whenRoute('GET', 'api/dashboards/db/:id/versions').respond(versionsResponse); - $httpBackend.whenRoute('GET', 'api/dashboards/db/:id/compare/:original...:new').respond(compareResponse); - $httpBackend.whenRoute('POST', 'api/dashboards/db/:id/restore') + $httpBackend.whenRoute('GET', 'api/dashboards/id/:id/versions').respond(versionsResponse); + $httpBackend.whenRoute('GET', 'api/dashboards/id/:id/compare/:original...:new').respond(compareResponse); + $httpBackend.whenRoute('POST', 'api/dashboards/id/:id/restore') .respond(function(method, url, data, headers, params) { const parsedData = JSON.parse(data); return [200, restoreResponse(parsedData.version)];