Pārlūkot izejas kodu

test: Update test with new component signature

Johannes Schill 8 gadi atpakaļ
vecāks
revīzija
23cceaecc4
1 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. 10 10
      public/app/core/specs/global_event_srv.jest.ts

+ 10 - 10
public/app/core/specs/global_event_srv.jest.ts

@@ -1,23 +1,23 @@
-import { GlobalEventSrv } from 'app/core/services/global_event_srv';
-import { beforeEach } from 'test/lib/common';
+import { GlobalEventSrv } from "app/core/services/global_event_srv";
+import { beforeEach } from "test/lib/common";
 
-jest.mock('app/core/config', () => {
+jest.mock("app/core/config", () => {
   return {
-    appSubUrl: '/subUrl'
+    appSubUrl: "/subUrl"
   };
 });
 
-describe('GlobalEventSrv', () => {
+describe("GlobalEventSrv", () => {
   let searchSrv;
 
   beforeEach(() => {
-    searchSrv = new GlobalEventSrv(null, null);
+    searchSrv = new GlobalEventSrv(null, null, null);
   });
 
-  describe('With /subUrl as appSubUrl', () => {
-    it('/subUrl should be stripped', () => {
-        const urlWithoutMaster = searchSrv.stripBaseFromUrl('/subUrl/grafana/');
-        expect(urlWithoutMaster).toBe('/grafana/');
+  describe("With /subUrl as appSubUrl", () => {
+    it("/subUrl should be stripped", () => {
+      const urlWithoutMaster = searchSrv.stripBaseFromUrl("/subUrl/grafana/");
+      expect(urlWithoutMaster).toBe("/grafana/");
     });
   });
 });