Fix linter and i18n

pull/107612/head
Vardan Torosyan 2 weeks ago
parent 84f7760599
commit 882be036a2
  1. 6
      public/app/core/components/SessionExpiryMonitor/SessionExpiryMonitor.test.tsx
  2. 4
      public/locales/en-US/grafana.json

@ -27,7 +27,7 @@ jest.mock('app/core/copy/appNotification', () => ({
}));
describe('SessionExpiryMonitor', () => {
let store: any;
let store: ReturnType<typeof configureStore>;
beforeEach(() => {
jest.clearAllMocks();
@ -38,7 +38,7 @@ describe('SessionExpiryMonitor', () => {
},
});
(contextSrv.isSignedIn as any) = true;
(contextSrv as { isSignedIn: boolean }).isSignedIn = true;
(hasSessionExpiry as jest.Mock).mockReturnValue(true);
});
@ -66,7 +66,7 @@ describe('SessionExpiryMonitor', () => {
});
it('should not monitor when user is not signed in', () => {
(contextSrv.isSignedIn as any) = false;
(contextSrv as { isSignedIn: boolean }).isSignedIn = false;
(getSessionExpiry as jest.Mock).mockReturnValue(Math.floor(Date.now() / 1000) + 10 * 60);
renderComponent();

@ -10976,6 +10976,10 @@
"revoked-label": "Revoked"
}
},
"session-expiry": {
"warning-message": "Your session will expire in {{minutes}} minute(s). Please make sure to finish up or save any changes.",
"warning-title": "Session Expiring Soon"
},
"share-dashboard": {
"menu": {
"export-json-title": "Export as JSON",

Loading…
Cancel
Save