فهرست منبع

Fixed unit test.

ilgizar 7 سال پیش
والد
کامیت
e015047ed1
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      public/app/plugins/panel/graph/specs/align_yaxes.jest.ts

+ 1 - 2
public/app/plugins/panel/graph/specs/align_yaxes.jest.ts

@@ -200,11 +200,10 @@ describe('Graph Y axes aligner', function() {
 
 
   describe('on level not number value', () => {
   describe('on level not number value', () => {
     it('Should ignore without errors', () => {
     it('Should ignore without errors', () => {
-      alignY = 'q';
       yaxes = [{ min: 5, max: 10 }, { min: 2, max: 4 }];
       yaxes = [{ min: 5, max: 10 }, { min: 2, max: 4 }];
       expected = [{ min: 5, max: 10 }, { min: 2, max: 4 }];
       expected = [{ min: 5, max: 10 }, { min: 2, max: 4 }];
 
 
-      alignYLevel(yaxes, alignY);
+      alignYLevel(yaxes, 'q');
       expect(yaxes).toMatchObject(expected);
       expect(yaxes).toMatchObject(expected);
     });
     });
   });
   });